Skip to main content
Speech-to-Speech (S2S) mode skips separate STT and TTS stages — the model handles audio natively, cutting processing to roughly 300ms. The caller-perceived pause also includes silence_timeout_ms (800ms by default), which applies on both pipeline modes.

Configuration

Set pipeline_mode: "s2s" in the agent config. The stt, llm, and tts fields are ignored in S2S mode.

Options

Voices

  • OpenAI Realtime — one of a fixed set: alloy, ash, ballad, coral, echo, sage, shimmer, verse. An unknown voice is rejected on create.
  • Gemini Live — any Gemini-supported voice (e.g. Aoede, Charon, Kore, Puck, Zephyr, and more). The set grows per model, so TurnCall doesn’t allowlist it — Gemini validates the voice when the session connects.
  • Nova Sonic — matthew (default), tiffany, amy, lupe, carlos. AWS validates on connect.
  • Grok Voice — eve (default), any other built-in Grok voice, or a custom voice id from your xAI account. xAI validates on connect.
  • Eleven Realtime — brian (default), or any ElevenLabs voice name or id your account can use. ElevenLabs validates on connect.

OpenAI GPT-Live-1

provider: "openai_live" runs OpenAI’s gpt-live-1, a full-duplex model: it listens and speaks at the same time, and decides for itself when to answer and when to stop on being talked over. That is the difference from the Realtime API, which is turn-based.
Leave s2s.model unset and it resolves to gpt-live-1. Set it explicitly and the value is sent as given. The agent speaks first: the session opens by asking gpt-live-1 to say the agent’s first_message, or to greet the caller when there is none. It delivers the line in its own words — usually verbatim, but not always.

Delegation

gpt-live-1 calls no tools of its own: it listens and speaks, and hands anything that needs a tool or deeper reasoning to a second model — the delegate — while the conversation keeps going, then voices what came back. Without a delegation, an openai_live agent’s tools are never used. There are two modes, and an agent with tools gets one without asking:
  • client — the delegate is your agent’s own llm: any provider TurnCall supports, on its usual keys. It is the default for an openai_live agent with tools (static, MCP, or a tool-mode knowledge base) and no delegation block. An agent with no tools gets no delegation at all.
  • responses — OpenAI hosts the delegate, the model you name.
Either way the delegate runs your agent’s own tools — webhook and MCP alike, mocked in evals and recorded like on any provider — and query_knowledge for a tool-mode knowledge base.
In client mode the delegate’s provider needs a key like any other: one with no key at any level fails the call before it starts, naming it in missing_keys. client mode also honours llm.failover: the delegate is an ordinary LLM, so when it fails in a way it cannot recover from (a rejected key, an unknown model) the delegation moves to the next backup, recorded as provider.failover and in failovers on call.ended — as on cascade. Backups need keys too. llm.failover is refused (422) on every other speech-to-speech agent, responses mode included. The agent’s system_prompt reaches both models. TurnCall also appends to gpt-live-1’s instructions a paragraph telling it to delegate whenever the caller wants something done, listing each tool’s name and description — so an existing prompt needs no rewrite. In client mode pipecat adds a paragraph to the delegate’s instructions too (after instructions when you set them): that it works behind a voice assistant, that the caller hears only the messages it starts with >> — the rest are notes gpt-live-1 keeps to itself — and how to take a request that arrives while it works. Delegations run one at a time: one gpt-live-1 hands over while the delegate is busy waits for it to finish. end_call and do_not_call work as everywhere else, in both modes: the call ends after gpt-live-1’s goodbye. gpt-live-1 decides by itself whether to delegate, and it sometimes says goodbye without handing over end_call — the idle guard then ends the call after two silences. Refused with a 422: delegation on any other provider (they call tools themselves), responses without model, and handoff_to_agent among an openai_live agent’s tools — a handoff would swap the tools but not the live session’s voice and prompt. The older s2s.extra.backend_model (with extra.service_tier) keeps working, read as {"mode": "responses", "model": <it>}.

Differences from openai

pipecat_vad is rejected for this provider: client-side turn detection would fight a model that is doing its own.

Amazon Nova Sonic

Nova Sonic runs on AWS and shares the agent’s aws credential block with the Bedrock LLM provider — same account, same region resolution, no separate key. Nova Sonic 2 (amazon.nova-2-sonic-v1:0) is the default; the older amazon.nova-sonic-v1:0 still works.
endpointing_sensitivity tunes how quickly Nova Sonic decides the caller has stopped speaking. It lives in extra because it doesn’t fit the server_vad / pipecat_vad split that turn_detection uses.
endpointing_sensitivity is Nova Sonic 2 only — it is silently ignored on amazon.nova-sonic-v1:0.
Sessions roll over about every 6 minutes. Nova Sonic caps session length and TurnCall transparently continues the conversation in a new one — ordinary phone calls hit this routinely. AWS credentials are re-resolved at each rollover, so calls outlasting a temporary credential’s lifetime (assume-role and IRSA are typically ~1 hour) keep working instead of dying mid-sentence.

Grok Voice

provider: "xai" runs xAI’s Grok Voice on its own xai account: the project’s xai credential (PUT /v1/credentials/xai), else the platform’s XAI_API_KEY. With no model named it runs grok-voice-3.0, pinned rather than xAI’s grok-voice-latest alias, so a live agent’s model does not change when the alias moves. A model you name (grok-voice-2.0, deprecated by xAI, or a later one) is sent as written, for xAI to accept or refuse.
turn_detection: "server_vad" (the default) leaves turn-taking to Grok’s own voice activity detection. pipecat_vad turns it off: TurnCall’s VAD decides when the caller has finished, and the turn is handed to Grok then. Three of Grok’s session settings have no field of their own and go in s2s.extra, in xAI’s shape:
A value Grok would not take ({"effort": "low"}) is a 422 naming the key. Any other key in extra is logged as a warning and ignored, so a typo never stops a call. Refused with a 422, because Grok’s session has no such setting: s2s.temperature, s2s.max_tokens, and s2s.base_url — the xai provider always connects to xAI with the xai account’s key. To reach Grok through a gateway, use the openai provider with a base_url (see Gateways). An inline agent from call-init is not validated on save, so one with any of these fails when its call is built, ending as pipeline_error with the reason in error.raised. Tools work as on OpenAI Realtime: the agent’s webhook and MCP tools, the built-ins and a tool-mode knowledge base’s query_knowledge are offered to Grok and run through TurnCall, so they are recorded, mocked in evals and redacted. end_call ends the call after Grok’s goodbye. xAI’s own server-side tools (web search, X search, file search, hosted MCP) are never sent. Knowledge bases work in prompt and tool mode; auto is ignored with a warning, as on every S2S provider.

Eleven Realtime

provider: "elevenlabs" runs ElevenLabs’ speech-to-speech models on the same elevenlabs account as its TTS and STT: the project’s elevenlabs credential, else the platform’s ELEVENLABS_API_KEY. Two models: eleven_realtime_v1_mini (the default, for price and speed) and eleven_realtime_v1_max, which reasons before it answers — ElevenLabs recommends it for agents that lean on tools. That is not optional for an agent with a real prompt: measured on a restaurant agent (a 3,700-character prompt, query_knowledge and end_call), Max searched the menu and ended the call every time, and Mini never called a tool. It answered from what it guessed, inventing dishes, and left the caller to hang up. Use Mini for an agent that only talks. Eleven Realtime is reaching ElevenLabs workspaces gradually; a key on a workspace without it is refused when the call connects, as is one without the ElevenAgents permission.
  • extra.language is the language the caller is heard in and answered in (ElevenLabs’ default is English).
  • extra.eagerness (low, medium, high) is how quickly ElevenLabs’ semantic turn detection decides the caller has finished. turn_detection: "pipecat_vad" turns it off and lets TurnCall’s VAD decide.
  • temperature is accepted, and max_tokens caps each reply.
  • A session lasts as long as the agent’s max_call_duration_seconds (plus a short margin). ElevenLabs caps a session at 7,200 seconds, so an agent allowed longer is a 422.
Any other extra key is ignored with a warning. s2s.base_url is a 422: the provider always connects to ElevenLabs. An openai agent whose base_url points at ElevenLabs is a 422 too, since it would send your OpenAI key there. A key ElevenLabs refuses ends the call with error.raised carrying provider: "elevenlabs" and key_rejected: true. Tools, knowledge bases, evals, avatars and ambience work as on OpenAI Realtime: tools run through TurnCall, recorded and mocked in evals. ElevenLabs’ own mcp tool type is never sent — an agent’s MCP servers are connected by TurnCall.

Known issues

Both are on Max, the model tool-using agents need:
  • It can say a tool call out loud (#472). Max sometimes writes a tool call into its reply as text, and the caller hears it, for example “End call.” or a tool’s name and arguments. ElevenLabs speaks its own text and sends no word timing, so TurnCall can’t cut the words out of the audio.
  • It can repeat the greeting at the goodbye (#485). To make ElevenLabs speak first, the session opens on a caller message asking for first_message. That message stays in the conversation, and Max sometimes answers it again later, usually in the same reply as end_call. The caller hears the greeting, then the goodbye. ElevenLabs can’t delete a conversation item yet, and rewording the opening didn’t help.

Gateways and third-party models

The openai provider speaks the OpenAI-Realtime WebSocket protocol — and so do OpenAI-Realtime-compatible gateways (Vercel AI Gateway, LiteLLM). Set s2s.base_url to route the realtime connection through one; provider-prefixed models like openai/gpt-realtime-2 then flow over the same protocol — no new provider, same pipeline. Two requirements:
1

Allowlist the gateway URL

base_url is an outbound target, so it’s gated by the same SSRF guard as custom LLM endpoints. Add its wss:// pattern to BYOM_ALLOWED_URL_PATTERNS, e.g. ["wss://ai-gateway.vercel.sh/*"]. A base_url outside the allowlist is rejected before the call starts.
2

Use the gateway key

Set OPENAI_API_KEY to the gateway’s API key — it’s sent as Authorization: Bearer … on the WebSocket.
When base_url is set, the OpenAI voice allowlist is bypassed — the gateway routes to models with their own voice sets, which it validates upstream. Pass the target model’s own voice name.

Knowledge bases

Two of the three retrieval modes work on a speech-to-speech agent, on every provider:
  • prompt — the document text leads the instructions, ahead of system_prompt. On openai_live the delegate gets it too, unless delegation.instructions replaces the delegate’s prompt.
  • tool — query_knowledge is one more tool. Realtime, Gemini Live and Nova Sonic call it themselves; on openai_live the delegate does, and gpt-live-1’s delegation paragraph names it. It counts as a tool, so an openai_live agent whose only tool it is still gets a client delegate. llm.failover is checked when the agent is saved, before any knowledge base is linked, so such an agent sets "delegation": {"mode": "client"} to be allowed backups.
auto is not supported: it retrieves just before each LLM turn, and a speech-to-speech model has no such point. The KB is skipped with a warning when the call is built, and the agent read carries a knowledge_mode_unsupported entry in warnings naming the mode and provider. Link it in tool mode instead.

Pipeline

Required API Keys

S2S mode cannot be combined with voicemail_detection.enabled: true.