nezihtopaloglu commited on
Commit
10d615f
·
verified ·
1 Parent(s): 163cb83

Trying glow-tts

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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)