Spaces:
Sleeping
Sleeping
speaker bug
Browse files
app.py
CHANGED
@@ -29,11 +29,23 @@ def tts(text: str, split_sentences: bool = True):
|
|
29 |
vocoder_model = hf_hub_download(repo_id=REPO_ID, filename="ljspeech--hifigan_v2_model_file.pth")
|
30 |
vocoder_config = hf_hub_download(repo_id=REPO_ID, filename="ljspeech--hifigan_v2_config.json")
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
synthesizer = Synthesizer(
|
33 |
-
best_model_path,
|
34 |
-
config_path,
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
use_cuda=CUDA
|
38 |
)
|
39 |
|
|
|
29 |
vocoder_model = hf_hub_download(repo_id=REPO_ID, filename="ljspeech--hifigan_v2_model_file.pth")
|
30 |
vocoder_config = hf_hub_download(repo_id=REPO_ID, filename="ljspeech--hifigan_v2_config.json")
|
31 |
|
32 |
+
# synthesizer = Synthesizer(
|
33 |
+
# best_model_path,
|
34 |
+
# config_path,
|
35 |
+
# vocoder_model,
|
36 |
+
# vocoder_config,
|
37 |
+
# use_cuda=CUDA
|
38 |
+
# )
|
39 |
+
|
40 |
synthesizer = Synthesizer(
|
41 |
+
tts_checkpoint=best_model_path,
|
42 |
+
tts_config_path=config_path,
|
43 |
+
tts_speakers_file=None,
|
44 |
+
tts_languages_file=None,
|
45 |
+
vocoder_checkpoint=vocoder_model,
|
46 |
+
vocoder_config=vocoder_config,
|
47 |
+
encoder_checkpoint="",
|
48 |
+
encoder_config="",
|
49 |
use_cuda=CUDA
|
50 |
)
|
51 |
|