Spaces:
Sleeping
Sleeping
Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
@@ -236,7 +236,7 @@ def text_to_speech(text, output_path, speed=1.3):
|
|
236 |
raw_path = "raw_commentary.wav"
|
237 |
|
238 |
# Load multilingual TTS model
|
239 |
-
tts = TTS(model_name="tts_models/en/ljspeech/tacotron2-
|
240 |
|
241 |
# Save original audio
|
242 |
tts.tts_to_file(text=text, file_path=raw_path)
|
|
|
236 |
raw_path = "raw_commentary.wav"
|
237 |
|
238 |
# Load multilingual TTS model
|
239 |
+
tts = TTS(model_name="tts_models/en/ljspeech/tacotron2-DDC", progress_bar=True, gpu=False)
|
240 |
|
241 |
# Save original audio
|
242 |
tts.tts_to_file(text=text, file_path=raw_path)
|