pluviouse commited on
Commit
06f8d40
·
verified ·
1 Parent(s): e239ad9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def voicevox_resp():
29
  io = BytesIO(data)
30
  if opus:
31
  io = mp3_to_opus(io)
32
- mime = "audio/opus" if opus else "audio/mp3"
33
  ext = ".opus" if opus else ".mp3"
34
  return send_file(io, as_attachment=True, mimetype=mime, download_name=f'rull-pyward_voicevox({text.strip()}){ext}')
35
  except Exception as e:
 
29
  io = BytesIO(data)
30
  if opus:
31
  io = mp3_to_opus(io)
32
+ mime = "audio/ogg" if opus else "audio/mpeg"
33
  ext = ".opus" if opus else ".mp3"
34
  return send_file(io, as_attachment=True, mimetype=mime, download_name=f'rull-pyward_voicevox({text.strip()}){ext}')
35
  except Exception as e: