Spaces:
Runtime error
Runtime error
aar2dee2
commited on
Commit
·
f04d6e8
1
Parent(s):
13d31cd
fix argument error in send_audio
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def main(input_audio):
|
|
108 |
response = agent.respond(transcript)
|
109 |
logger.info(f"Agent response: {response}")
|
110 |
output_audio = synthesizer.synthesize(response)
|
111 |
-
return SpeakerOutput.send_audio(output_audio)
|
112 |
|
113 |
except Exception as e:
|
114 |
logger.error("Failed to synthesize response: %s", e)
|
|
|
108 |
response = agent.respond(transcript)
|
109 |
logger.info(f"Agent response: {response}")
|
110 |
output_audio = synthesizer.synthesize(response)
|
111 |
+
return SpeakerOutput.send_audio(audio_segment=output_audio)
|
112 |
|
113 |
except Exception as e:
|
114 |
logger.error("Failed to synthesize response: %s", e)
|