Spaces:
Runtime error
Runtime error
remove folder
Browse files
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="
|
19 |
-
config_path="
|
20 |
-
tts_speakers_file="
|
21 |
-
encoder_checkpoint="
|
22 |
-
encoder_config="
|
23 |
-
wav = tts.tts(text, speaker_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
|