Spaces:
Sleeping
Sleeping
Update app.py
Browse filesChanged output type from file to filepath for Gradio to use the correct format for playing the audio directly in the interface
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="
|
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 |
)
|