Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,14 @@ Um Enn huet den Nordwand säi Kampf opginn. Dunn huet d’Sonn d’Loft mat hire
|
|
20 |
a schonn no kuerzer Zäit huet de Wanderer säi Mantel ausgedoen. Do huet den Nordwand missen zouginn,
|
21 |
datt d’Sonn vun hinnen zwee dee Stäerkste wier."""
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
def init():
|
24 |
key_list=['lb_LU-marylux-medium','lb_LU-femaleLOD-medium','lb_LU-androgynous-medium']
|
25 |
return(gr.update(label="Voice",choices=key_list,value="lb_LU-androgynous-medium",interactive=True))
|
@@ -90,7 +98,7 @@ def load_set(set_file):
|
|
90 |
gr.update(value=set_json['noise']),gr.update(value=set_json['width']),
|
91 |
gr.update(value=set_json['pause']))
|
92 |
|
93 |
-
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."""
|
94 |
|
95 |
def button_on(stream):
|
96 |
if stream==True:
|
@@ -111,6 +119,10 @@ with gr.Blocks() as b:
|
|
111 |
cancel_btn=gr.Button("Stop")
|
112 |
out_aud=gr.Audio(streaming=True, autoplay=True)
|
113 |
with gr.Column(scale=1):
|
|
|
|
|
|
|
|
|
114 |
with gr.Accordion("Control", open=False):
|
115 |
stream=gr.Checkbox(label="Stream",info="Streaming is fast, but lower quality",value=True,interactive=True)
|
116 |
length=gr.Slider(label="Length", minimum=0.01, maximum=10.0, value=1)
|
|
|
20 |
a schonn no kuerzer Zäit huet de Wanderer säi Mantel ausgedoen. Do huet den Nordwand missen zouginn,
|
21 |
datt d’Sonn vun hinnen zwee dee Stäerkste wier."""
|
22 |
|
23 |
+
speeds = [
|
24 |
+
"ganz lues",
|
25 |
+
"lues",
|
26 |
+
"normal",
|
27 |
+
"schnell",
|
28 |
+
"ganz schnell"
|
29 |
+
]
|
30 |
+
|
31 |
def init():
|
32 |
key_list=['lb_LU-marylux-medium','lb_LU-femaleLOD-medium','lb_LU-androgynous-medium']
|
33 |
return(gr.update(label="Voice",choices=key_list,value="lb_LU-androgynous-medium",interactive=True))
|
|
|
98 |
gr.update(value=set_json['noise']),gr.update(value=set_json['width']),
|
99 |
gr.update(value=set_json['pause']))
|
100 |
|
101 |
+
# 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."""
|
102 |
|
103 |
def button_on(stream):
|
104 |
if stream==True:
|
|
|
119 |
cancel_btn=gr.Button("Stop")
|
120 |
out_aud=gr.Audio(streaming=True, autoplay=True)
|
121 |
with gr.Column(scale=1):
|
122 |
+
with gr.Row():
|
123 |
+
gr.Markup("**Blablabla**")
|
124 |
+
gr.Radio(label="Speed", choices = speeds, value = "schnell")
|
125 |
+
|
126 |
with gr.Accordion("Control", open=False):
|
127 |
stream=gr.Checkbox(label="Stream",info="Streaming is fast, but lower quality",value=True,interactive=True)
|
128 |
length=gr.Slider(label="Length", minimum=0.01, maximum=10.0, value=1)
|