zarox commited on
Commit
825da68
·
1 Parent(s): f57384f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -184,7 +184,7 @@ async def audio_effect_handler(event):
184
 
185
  query = event.pattern_match.group(1).decode("UTF-8")
186
  try:
187
- sound = Fusion.loadSound(audio_file)
188
  if query == 'slowed':
189
  modified_sound = Fusion.effectSlowed(sound, 0.82)
190
  elif query == 'speedup':
 
184
 
185
  query = event.pattern_match.group(1).decode("UTF-8")
186
  try:
187
+ sound = Fusion.from_file(audio_file, format="mp3")
188
  if query == 'slowed':
189
  modified_sound = Fusion.effectSlowed(sound, 0.82)
190
  elif query == 'speedup':