Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from Utility.utils import load_json_from_path
|
|
8 |
|
9 |
class TTSWebUI:
|
10 |
|
11 |
-
def __init__(self, gpu_id="cpu", title="Stochastic Speech Synthesis with ToucanTTS", article="", available_artificial_voices=1000, path_to_iso_list="Preprocessing/multilinguality/iso_to_fullname.json"):
|
12 |
-
iso_to_name = load_json_from_path(path_to_iso_list)
|
13 |
# accent_selection = [f"{iso_to_name[iso_code]} Accent ({iso_code})" for iso_code in iso_to_name]
|
14 |
|
15 |
self.controllable_ui = ControllableInterface(gpu_id=gpu_id,
|
@@ -63,7 +63,7 @@ class TTSWebUI:
|
|
63 |
0.,
|
64 |
0.,
|
65 |
0.,
|
66 |
-
-
|
67 |
return (sr, float2pcm(wav)), fig
|
68 |
|
69 |
|
|
|
8 |
|
9 |
class TTSWebUI:
|
10 |
|
11 |
+
def __init__(self, gpu_id="cpu", title="Stochastic Speech Synthesis with ToucanTTS", article="For a multilingual version, have a look at https://huggingface.co/spaces/Flux9665/MassivelyMultilingualTTS", available_artificial_voices=1000, path_to_iso_list="Preprocessing/multilinguality/iso_to_fullname.json"):
|
12 |
+
# iso_to_name = load_json_from_path(path_to_iso_list)
|
13 |
# accent_selection = [f"{iso_to_name[iso_code]} Accent ({iso_code})" for iso_code in iso_to_name]
|
14 |
|
15 |
self.controllable_ui = ControllableInterface(gpu_id=gpu_id,
|
|
|
63 |
0.,
|
64 |
0.,
|
65 |
0.,
|
66 |
+
-20.)
|
67 |
return (sr, float2pcm(wav)), fig
|
68 |
|
69 |
|