Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
@@ -183,15 +183,15 @@ async def audio_effect_handler(event):
|
|
183 |
audio_file = states[user_id]['audio']
|
184 |
|
185 |
query = event.pattern_match.group(1).decode("UTF-8")
|
186 |
-
sound = Fusion.from_file(audio_file, format="mp3")
|
187 |
if query == 'slowed':
|
188 |
-
modified_sound = Fusion.effectSlowed(sound
|
189 |
elif query == 'speedup':
|
190 |
-
modified_sound = Fusion.effectSlowed(sound, 1.1)
|
191 |
elif query == '8d':
|
192 |
-
modified_sound = Fusion.effect8D(sound)
|
193 |
elif query == 'reverb':
|
194 |
-
modified_sound = Fusion.effectReverb(sound)
|
195 |
elif query == 'reverse':
|
196 |
modified_sound = sound.reverse()
|
197 |
else:
|
|
|
183 |
audio_file = states[user_id]['audio']
|
184 |
|
185 |
query = event.pattern_match.group(1).decode("UTF-8")
|
186 |
+
sound = await Fusion.from_file(audio_file, format="mp3")
|
187 |
if query == 'slowed':
|
188 |
+
modified_sound = await Fusion.effectSlowed(sound)
|
189 |
elif query == 'speedup':
|
190 |
+
modified_sound = await Fusion.effectSlowed(sound, 1.1)
|
191 |
elif query == '8d':
|
192 |
+
modified_sound = await Fusion.effect8D(sound)
|
193 |
elif query == 'reverb':
|
194 |
+
modified_sound = await Fusion.effectReverb(sound)
|
195 |
elif query == 'reverse':
|
196 |
modified_sound = sound.reverse()
|
197 |
else:
|