Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ class TTSWebUI:
|
|
19 |
tts_model_path=None,
|
20 |
vocoder_model_path=None,
|
21 |
embedding_gan_path=None,
|
22 |
-
available_artificial_voices=
|
23 |
):
|
24 |
path_to_iso_list = hf_hub_download(repo_id="Flux9665/ToucanTTS", filename="iso_to_fullname.json")
|
25 |
iso_to_name = load_json_from_path(path_to_iso_list)
|
@@ -42,7 +42,7 @@ class TTSWebUI:
|
|
42 |
label="Select the Language of the Text (type on your keyboard to find it quickly)"),
|
43 |
gr.Slider(minimum=0.0, maximum=0.8, step=0.1, value=0.5, label="Prosody Creativity"),
|
44 |
gr.Slider(minimum=0.7, maximum=1.3, step=0.1, value=1.0, label="Faster - Slower"),
|
45 |
-
gr.Slider(minimum=0, maximum=available_artificial_voices, step=1, value=
|
46 |
gr.Slider(minimum=-10.0, maximum=10.0, step=0.1, value=0.0, label="Gender of artificial Voice"),
|
47 |
gr.Audio(type="filepath", show_label=True, container=True, label="[OPTIONAL] Voice to Clone (if left empty, will use an artificial voice instead)"),
|
48 |
# gr.Slider(minimum=0.5, maximum=1.5, step=0.1, value=1.0, label="Pitch Variance Scale"),
|
|
|
19 |
tts_model_path=None,
|
20 |
vocoder_model_path=None,
|
21 |
embedding_gan_path=None,
|
22 |
+
available_artificial_voices=32 # be careful with this, if you want too many, it might lead to an endless loop
|
23 |
):
|
24 |
path_to_iso_list = hf_hub_download(repo_id="Flux9665/ToucanTTS", filename="iso_to_fullname.json")
|
25 |
iso_to_name = load_json_from_path(path_to_iso_list)
|
|
|
42 |
label="Select the Language of the Text (type on your keyboard to find it quickly)"),
|
43 |
gr.Slider(minimum=0.0, maximum=0.8, step=0.1, value=0.5, label="Prosody Creativity"),
|
44 |
gr.Slider(minimum=0.7, maximum=1.3, step=0.1, value=1.0, label="Faster - Slower"),
|
45 |
+
gr.Slider(minimum=0, maximum=available_artificial_voices, step=1, value=16, label="Random Seed for the artificial Voice"),
|
46 |
gr.Slider(minimum=-10.0, maximum=10.0, step=0.1, value=0.0, label="Gender of artificial Voice"),
|
47 |
gr.Audio(type="filepath", show_label=True, container=True, label="[OPTIONAL] Voice to Clone (if left empty, will use an artificial voice instead)"),
|
48 |
# gr.Slider(minimum=0.5, maximum=1.5, step=0.1, value=1.0, label="Pitch Variance Scale"),
|