Update utils/ffmpeg.py
Browse files- utils/ffmpeg.py +1 -1
utils/ffmpeg.py
CHANGED
|
@@ -47,6 +47,6 @@ def ffmpeg(input_stream: io.BufferedReader, ffmpeg_args: list) -> io.BytesIO:
|
|
| 47 |
def mp3_to_opus(input_bytes_io: io.BytesIO) -> io.BytesIO:
|
| 48 |
try:
|
| 49 |
input_stream = io.BufferedReader(input_bytes_io)
|
| 50 |
-
return ffmpeg(input_stream, ["-c:a", "libopus"])
|
| 51 |
except Exception as e:
|
| 52 |
raise RuntimeError(f"Failed to convert MP3 to Opus: {str(e)}")
|
|
|
|
| 47 |
def mp3_to_opus(input_bytes_io: io.BytesIO) -> io.BytesIO:
|
| 48 |
try:
|
| 49 |
input_stream = io.BufferedReader(input_bytes_io)
|
| 50 |
+
return ffmpeg(input_stream, ["-c:a", "libopus", "-f", "opus"])
|
| 51 |
except Exception as e:
|
| 52 |
raise RuntimeError(f"Failed to convert MP3 to Opus: {str(e)}")
|