Update app.py
Browse files
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/
|
| 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:
|