I updated my session to enable turn detection using server VAD. When I play the response audio my microphone picks up what the AI is saying… The API then thinks that is what I am saying so the AI is talking to itself. How can I make it so it knows not to listen to the AI’s response?
let sessionUpdateJson: [String: Any] = [
"type": "session.update",
"session": [
"modalities": ["text", "audio"],
"instructions": "MY INSTRUCTIONS",
"voice": "alloy",
"input_audio_transcription": [
"model": "whisper-1"
],
"turn_detection": [ "type": "server_vad" ]
]
]