VanYsa commited on
Commit
788145a
·
1 Parent(s): 5743296

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=False, label="Response Voice Player", show_label=True,
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 = gr.Audio(type="numpy", autoplay=True, label="Generated Audio - British Female Speaker", show_label=True, visible=True)
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