Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def process_audio(audio):
|
|
| 15 |
# Convert generated text to speech using TTS pipeline
|
| 16 |
speech = tts_pipe(generated_text)[0]['audio']
|
| 17 |
|
| 18 |
-
return speech
|
| 19 |
|
| 20 |
audio_input = gr.Audio(label="Audio Input", sources="microphone")
|
| 21 |
my_alexa_output = gr.Interface(fn=process_audio, inputs=audio_input, outputs="text", title="MyAlexa AI Assistant",
|
|
|
|
| 15 |
# Convert generated text to speech using TTS pipeline
|
| 16 |
speech = tts_pipe(generated_text)[0]['audio']
|
| 17 |
|
| 18 |
+
return (speech["sampling_rate"], speech["audio"]).squeeze()
|
| 19 |
|
| 20 |
audio_input = gr.Audio(label="Audio Input", sources="microphone")
|
| 21 |
my_alexa_output = gr.Interface(fn=process_audio, inputs=audio_input, outputs="text", title="MyAlexa AI Assistant",
|