Spaces:
Runtime error
Runtime error
aar2dee2
commited on
Commit
·
13d31cd
1
Parent(s):
5042d26
fix agent method name
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def main(input_audio):
|
|
105 |
input_audio_segment = convert_to_audio_segment(input_audio)
|
106 |
transcript = transcriber.transcribe(input_audio_segment)
|
107 |
logger.info(f"Transcription: {transcript}")
|
108 |
-
response = agent.
|
109 |
logger.info(f"Agent response: {response}")
|
110 |
output_audio = synthesizer.synthesize(response)
|
111 |
return SpeakerOutput.send_audio(output_audio)
|
|
|
105 |
input_audio_segment = convert_to_audio_segment(input_audio)
|
106 |
transcript = transcriber.transcribe(input_audio_segment)
|
107 |
logger.info(f"Transcription: {transcript}")
|
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)
|