Flux9665 commited on
Commit
1f46e8d
·
verified ·
1 Parent(s): c255993

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- -18.)
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