Update app.py
Browse files
app.py
CHANGED
@@ -38,15 +38,15 @@ def load_set(set_file):
|
|
38 |
gr.update(value=set_json['noise']),gr.update(value=set_json['width']),
|
39 |
gr.update(value=set_json['pause']))
|
40 |
txt="""PiperTTS is a powerful text-to-speech TTS node designed to convert written text into high-quality spoken audio. This node leverages advanced voice synthesis models to generate natural-sounding speech, making it an invaluable tool for AI developers looking to add a vocal element to their projects."""
|
41 |
-
def exp1():
|
42 |
-
exp_file=f"./example/en_US-libritts-high__1_4__0_3__0_2__1.json"
|
43 |
-
return(gr.update(value=txt),gr.update(value=exp_file))
|
44 |
-
def exp2():
|
45 |
-
exp_file=f"./example/en_US-ryan-high__1__0_6__0_01__1.json"
|
46 |
-
return(gr.update(value=txt),gr.update(value=exp_file))
|
47 |
-
def exp3():
|
48 |
-
exp_file=f"./example/en_US-ljspeech-high__1__1__0_5__1.json"
|
49 |
-
return(gr.update(value=txt),gr.update(value=exp_file))
|
50 |
def button_on(stream):
|
51 |
if stream==True:
|
52 |
return gr.update(interactive=True,visible=True),gr.update(interactive=False,visible=False)
|
@@ -75,7 +75,7 @@ with gr.Blocks(theme="Hev832/Applio-Theme") as b:
|
|
75 |
noise=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=1)
|
76 |
# noise=1 >> error
|
77 |
width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=1)
|
78 |
-
|
79 |
# with gr.Tab("Save Settings"):
|
80 |
# save_btn=gr.Button("Save")
|
81 |
# save_file=gr.File()
|
|
|
38 |
gr.update(value=set_json['noise']),gr.update(value=set_json['width']),
|
39 |
gr.update(value=set_json['pause']))
|
40 |
txt="""PiperTTS is a powerful text-to-speech TTS node designed to convert written text into high-quality spoken audio. This node leverages advanced voice synthesis models to generate natural-sounding speech, making it an invaluable tool for AI developers looking to add a vocal element to their projects."""
|
41 |
+
# def exp1():
|
42 |
+
# exp_file=f"./example/en_US-libritts-high__1_4__0_3__0_2__1.json"
|
43 |
+
# return(gr.update(value=txt),gr.update(value=exp_file))
|
44 |
+
# def exp2():
|
45 |
+
# exp_file=f"./example/en_US-ryan-high__1__0_6__0_01__1.json"
|
46 |
+
# return(gr.update(value=txt),gr.update(value=exp_file))
|
47 |
+
# def exp3():
|
48 |
+
# exp_file=f"./example/en_US-ljspeech-high__1__1__0_5__1.json"
|
49 |
+
# return(gr.update(value=txt),gr.update(value=exp_file))
|
50 |
def button_on(stream):
|
51 |
if stream==True:
|
52 |
return gr.update(interactive=True,visible=True),gr.update(interactive=False,visible=False)
|
|
|
75 |
noise=gr.Slider(label="Noise", minimum=0.01, maximum=3.0, value=1)
|
76 |
# noise=1 >> error
|
77 |
width=gr.Slider(label="Noise Width", minimum=0.01, maximum=3.0, value=1)
|
78 |
+
sen_pause=gr.Slider(label="Sentence Pause", minimum=0.1, maximum=10.0, value=1)
|
79 |
# with gr.Tab("Save Settings"):
|
80 |
# save_btn=gr.Button("Save")
|
81 |
# save_file=gr.File()
|