Spaces:
Sleeping
Sleeping
divakaivan
commited on
Commit
•
5233ff4
1
Parent(s):
ff917b6
Update app.py
Browse files
app.py
CHANGED
@@ -65,14 +65,13 @@ def voice_assistant(audio):
|
|
65 |
transcribed_text = transcribe(audio)
|
66 |
response_text = generate_response(transcribed_text)
|
67 |
speech_audio = synthesize_speech(response_text)
|
68 |
-
return
|
69 |
|
70 |
iface = gr.Interface(
|
71 |
fn=voice_assistant,
|
72 |
inputs=gr.Audio(type="filepath"),
|
73 |
-
outputs=
|
74 |
-
title="
|
75 |
-
description="A voice assistant that uses ASR, LLM, and TTS to interact with users.",
|
76 |
)
|
77 |
|
78 |
iface.launch()
|
|
|
65 |
transcribed_text = transcribe(audio)
|
66 |
response_text = generate_response(transcribed_text)
|
67 |
speech_audio = synthesize_speech(response_text)
|
68 |
+
return speech_audio
|
69 |
|
70 |
iface = gr.Interface(
|
71 |
fn=voice_assistant,
|
72 |
inputs=gr.Audio(type="filepath"),
|
73 |
+
outputs=gr.Audio(label="Response Speech", type="numpy"),
|
74 |
+
title="Your Glaswegian Assistant"
|
|
|
75 |
)
|
76 |
|
77 |
iface.launch()
|