Issue:
When performing voice conversations with the ai agent via web sockets, the audio cuts off right before the agent is able to finish his last sentence.
This is an intermittent issue.
Expected behavior:
Audio plays thru completion when the conversation is ended by the server
More context:
From our tests it seems like the server is the one initialing the disconnection event, which we believe is causing the audio output to be immediately terminated regardless of the audio buffer being empty.
Agent end_call configuration:
Agent 'end call' prompt:
After all the topics have been asked and answered, call the mark_questions_asked tool to indicate to the client that it can mark the questions as completed, then you can disconnect the call after thanking the user for their time.