Spaces:
Running
Running
some paths added to synthesizer
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ vocoder_config_path = None
|
|
17 |
model_dir = None
|
18 |
language="en"
|
19 |
file_path="generated_audio.wav"
|
20 |
-
speaker =
|
21 |
split_sentences = True
|
22 |
pipe_out = None
|
23 |
|
@@ -26,8 +26,8 @@ pipe_out = None
|
|
26 |
synthesizer = Synthesizer(
|
27 |
tts_checkpoint=model_path,
|
28 |
tts_config_path=config_path,
|
29 |
-
tts_speakers_file=
|
30 |
-
tts_languages_file=
|
31 |
vocoder_checkpoint=vocoder_path,
|
32 |
vocoder_config=vocoder_config_path,
|
33 |
encoder_checkpoint=None,
|
|
|
17 |
model_dir = None
|
18 |
language="en"
|
19 |
file_path="generated_audio.wav"
|
20 |
+
speaker = None
|
21 |
split_sentences = True
|
22 |
pipe_out = None
|
23 |
|
|
|
26 |
synthesizer = Synthesizer(
|
27 |
tts_checkpoint=model_path,
|
28 |
tts_config_path=config_path,
|
29 |
+
tts_speakers_file=Path(r"tss_model/speakers.json"),
|
30 |
+
tts_languages_file=Path(r"tss_model/language_ids.json"),
|
31 |
vocoder_checkpoint=vocoder_path,
|
32 |
vocoder_config=vocoder_config_path,
|
33 |
encoder_checkpoint=None,
|