Spaces:
Running
Running
Update infer_onnx.py
Browse files- infer_onnx.py +1 -1
infer_onnx.py
CHANGED
@@ -55,7 +55,7 @@ class TTS:
|
|
55 |
|
56 |
# Convert WAV to MP3 using pydub
|
57 |
audio_segment = AudioSegment.from_wav(temp_wav_path)
|
58 |
-
audio_segment.export(path, format="ogg", codec="opus")
|
59 |
|
60 |
# Optional: Remove the temporary WAV file
|
61 |
os.remove(temp_wav_path)
|
|
|
55 |
|
56 |
# Convert WAV to MP3 using pydub
|
57 |
audio_segment = AudioSegment.from_wav(temp_wav_path)
|
58 |
+
audio_segment.export(path, format="ogg", codec="opus", parameters=["-strict", "-2"])
|
59 |
|
60 |
# Optional: Remove the temporary WAV file
|
61 |
os.remove(temp_wav_path)
|