Spaces:
Runtime error
Runtime error
Rmoving decoder_max_step manual setting
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def generate_speech(text):
|
|
29 |
#tts = TTS("tts_models/en/ljspeech/tacotron2-DDC")
|
30 |
tts = TTS("tts_models/en/ljspeech/glow-tts")
|
31 |
|
32 |
-
tts.synthesizer.model.decoder.max_decoder_steps = 30000 # Increase limit
|
33 |
wav_path = "speech.wav"
|
34 |
tts.tts_to_file(text=text, file_path=wav_path)
|
35 |
return wav_path
|
|
|
29 |
#tts = TTS("tts_models/en/ljspeech/tacotron2-DDC")
|
30 |
tts = TTS("tts_models/en/ljspeech/glow-tts")
|
31 |
|
32 |
+
#tts.synthesizer.model.decoder.max_decoder_steps = 30000 # Increase limit
|
33 |
wav_path = "speech.wav"
|
34 |
tts.tts_to_file(text=text, file_path=wav_path)
|
35 |
return wav_path
|