Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ pipe = pipeline("text-to-speech", model="kakao-enterprise/vits-ljs", device=devi
|
|
13 |
def generate_audio(text):
|
14 |
|
15 |
output = pipe(text)
|
16 |
-
output = gr.Audio(value = (output["sampling_rate"], output["audio"].squeeze()), type="numpy", autoplay=
|
17 |
visible=True)
|
18 |
|
19 |
###############language = "english"
|
@@ -41,7 +41,7 @@ with gr.Blocks(css=css) as demo_blocks:
|
|
41 |
|
42 |
#"Enter the text you would like to synthesise into speech. Amazing! One plus one is equal to two. \n The quick brown fox jumps over the lazy dog. \n 1. Mangoes \n 2. Fruits"
|
43 |
with gr.Column():
|
44 |
-
out_audio =
|
45 |
|
46 |
btn.click(generate_audio, [inp_text], out_audio)
|
47 |
|
|
|
13 |
def generate_audio(text):
|
14 |
|
15 |
output = pipe(text)
|
16 |
+
output = gr.Audio(value = (output["sampling_rate"], output["audio"].squeeze()), type="numpy", autoplay=True, label="Response Voice Player", show_label=True,
|
17 |
visible=True)
|
18 |
|
19 |
###############language = "english"
|
|
|
41 |
|
42 |
#"Enter the text you would like to synthesise into speech. Amazing! One plus one is equal to two. \n The quick brown fox jumps over the lazy dog. \n 1. Mangoes \n 2. Fruits"
|
43 |
with gr.Column():
|
44 |
+
out_audio = []
|
45 |
|
46 |
btn.click(generate_audio, [inp_text], out_audio)
|
47 |
|