Spaces:
Running
on
Zero
Running
on
Zero
Trying glow-tts
Browse files
app.py
CHANGED
@@ -26,7 +26,9 @@ def estimate_chunk_durations(text, words_per_second=2.5, min_sec=5, max_sec=7):
|
|
26 |
return chunks
|
27 |
|
28 |
def generate_speech(text):
|
29 |
-
tts = TTS("tts_models/en/ljspeech/tacotron2-DDC")
|
|
|
|
|
30 |
tts.synthesizer.model.decoder.max_decoder_steps = 30000 # Increase limit
|
31 |
wav_path = "speech.wav"
|
32 |
tts.tts_to_file(text=text, file_path=wav_path)
|
|
|
26 |
return chunks
|
27 |
|
28 |
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)
|