Sunysss commited on
Commit
83b10c7
·
verified ·
1 Parent(s): 24b2d48

Update app.py

Browse files

Changed output type from file to filepath for Gradio to use the correct format for playing the audio directly in the interface

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def text_to_speech(text):
23
  iface = gr.Interface(
24
  fn=text_to_speech,
25
  inputs=gr.Textbox(label="Text to speak"),
26
- outputs=gr.Audio(type="file", label="Generated Speech"),
27
  title="SpeechBrain TTS Demo",
28
  description="Enter text and get an AI-generated voice output!"
29
  )
 
23
  iface = gr.Interface(
24
  fn=text_to_speech,
25
  inputs=gr.Textbox(label="Text to speak"),
26
+ outputs=gr.Audio(type="filepath", label="Generated Speech"),
27
  title="SpeechBrain TTS Demo",
28
  description="Enter text and get an AI-generated voice output!"
29
  )