rutsam commited on
Commit
c18603b
1 Parent(s): e88cf51

remove folder

Browse files
Files changed (1) hide show
  1. engine.py +6 -6
engine.py CHANGED
@@ -15,10 +15,10 @@ class TextToSpeech():
15
  hf_hub_download(repo_id=REPO_NAME,filename="conditioning_audio.wav")
16
 
17
  def run_tts(self,text):
18
- tts = TTS(model_path="Kinyarwanda_YourTTS/model.pth",
19
- config_path="Kinyarwanda_YourTTS/config.json",
20
- tts_speakers_file="Kinyarwanda_YourTTS/speakers.pth",
21
- encoder_checkpoint="Kinyarwanda_YourTTS/SE_checkpoint.pth.tar",
22
- encoder_config="Kinyarwanda_YourTTS/config_se.json",)
23
- wav = tts.tts(text, speaker_wav="kinyarwanda_YourTTS/conditioning_audio.wav")
24
  return wav
 
15
  hf_hub_download(repo_id=REPO_NAME,filename="conditioning_audio.wav")
16
 
17
  def run_tts(self,text):
18
+ tts = TTS(model_path="model.pth",
19
+ config_path="config.json",
20
+ tts_speakers_file="speakers.pth",
21
+ encoder_checkpoint="SE_checkpoint.pth.tar",
22
+ encoder_config="config_se.json",)
23
+ wav = tts.tts(text, speaker_wav="conditioning_audio.wav")
24
  return wav