coolcoder613 commited on
Commit
82e735a
·
verified ·
1 Parent(s): 48d3b32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -45,12 +45,13 @@ class TTSWebUI:
45
  controllable_ui = self.controllable_ui
46
 
47
  @spaces.GPU
48
- def read(prompt, language, prosody_creativity, duration_scaling_factor, voice_seed, emb1, reference_audio):
49
  iso = language.split(" ")[-1].split("(")[1].split(")")[0]
50
  sr, wav, fig = controllable_ui.read(prompt,
51
  reference_audio,
52
  iso,
53
  iso,
 
54
  voice_seed,
55
  prosody_creativity,
56
  duration_scaling_factor,
@@ -75,6 +76,7 @@ class TTSWebUI:
75
  type="value",
76
  value='English (eng)',
77
  label="Select the Language of the Text (type on your keyboard to find it quickly)"),
 
78
  gr.Slider(minimum=0.0, maximum=0.8, step=0.1, value=0.5, label="Prosody Creativity"),
79
  gr.Slider(minimum=0.7, maximum=1.3, step=0.1, value=1.0, label="Faster - Slower"),
80
  gr.Slider(minimum=0, maximum=available_artificial_voices, step=1, value=5, label="Random Seed for the artificial Voice"),
 
45
  controllable_ui = self.controllable_ui
46
 
47
  @spaces.GPU
48
+ def read(prompt, language, input_is_phones, prosody_creativity, duration_scaling_factor, voice_seed, emb1, reference_audio):
49
  iso = language.split(" ")[-1].split("(")[1].split(")")[0]
50
  sr, wav, fig = controllable_ui.read(prompt,
51
  reference_audio,
52
  iso,
53
  iso,
54
+ input_is_phones,
55
  voice_seed,
56
  prosody_creativity,
57
  duration_scaling_factor,
 
76
  type="value",
77
  value='English (eng)',
78
  label="Select the Language of the Text (type on your keyboard to find it quickly)"),
79
+ gr.Checkbox(value=False, label="Input is IPA phonemes (bypass G2P)"),
80
  gr.Slider(minimum=0.0, maximum=0.8, step=0.1, value=0.5, label="Prosody Creativity"),
81
  gr.Slider(minimum=0.7, maximum=1.3, step=0.1, value=1.0, label="Faster - Slower"),
82
  gr.Slider(minimum=0, maximum=available_artificial_voices, step=1, value=5, label="Random Seed for the artificial Voice"),