Answers a phone call that reached an OpenAI project's SIP endpoint: Squid accepts it and speaks for the agent until the call ends.
The call, the agent, and how the realtime model should talk.
The id of the voice session that runs the call.
Opens a voice session and returns the relay URL the telephony provider must connect to.
The agent, provider and per-call chat options.
The session id, its one-time token and the absolute relay URL.
Starts a browser call with an agent from a WebRTC offer: Squid creates the call on the OpenAI Realtime API, runs the agent behind it, and returns the answer for the browser's remote description. Use startWebCall for the whole flow, this for a custom WebRTC setup.
The agent, the offer and optional voice settings.
The session id, the call id and OpenAI's answer.
Starts a voice conversation with an agent in the browser: opens the microphone, connects to the OpenAI realtime model over WebRTC and plays the agent's voice. Browser only.
The agent and optional voice settings.
The running call, to listen to its turns, mute it or stop it.
AiVoiceClient puts agents on voice calls: phone calls a telephony provider relays to or OpenAI answers for a Squid agent (application API key), and browser calls a user starts from a web page.