switin06 commited on
Commit
deb409f
·
verified ·
1 Parent(s): 6f779ac

Update inference.py

Browse files
Files changed (1) hide show
  1. 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-ddc", progress_bar=False, gpu=False)
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)