Products
Real-time voice calls
Two-way voice conversations over a WebSocket, for web, apps and phone lines.
rp/voice-live holds a live conversation: the caller's audio streams in, the assistant's voice streams back while it is still answering, and the caller can interrupt at any time. Use it for receptionists, lead qualification and booking lines on the web, in apps, or on phone lines through a Twilio-style media stream.
Start a call
POST /v1/voice_live/sessions (scope audio) configures the call and returns a one-time client_secret with two WebSocket URLs: url for browsers and apps, stream_url for phone bridges (they drop query strings). Join within 60 seconds; a secret works once. Options: instructions, voice (any voice from GET /v1/voices or one of your cloned voices), language, tools, greeting (the assistant speaks first), max_minutes (1–120, default 30), end_of_turn_ms (silence that ends the caller's turn, 200–2000, default 450), fillers (a short "mm-hm" when an answer is slow, default on), transport (websocket or twilio), audio_format (pcm16 or mulaw), tool_webhook_url and metadata.
// 1. On your server: configure the call (your API key never reaches the browser or phone bridge).
const call = await rp.voiceLive.createSession({
instructions: "You answer calls for Sea Point Realty. Find out what the caller wants and book viewings.",
voice: "zanele", // or one of your cloned voices: "vc_…"
language: "en-ZA",
tools: ["save_lead", "book_meeting", "hand_over"],
greeting: "Good morning, Sea Point Realty, how can I help?",
max_duration_seconds: 600, // hard limit: goodbye, then the call ends (time_limit)
silence_timeout_seconds: 20, // no caller speech for 20 s: goodbye, then silence_timeout (default 30, 0 = never)
});
// Hang up from your side at any time: the call ends at once and billing stops at that second.
ws.send(JSON.stringify({ type: "session.end" }));
// 2. In the browser or app: join within 60 s with the one-time URL.
const ws = new WebSocket(call.url);
ws.binaryType = "arraybuffer";
mic.onFrame = (pcm16k) => ws.send(pcm16k); // 16-bit 16 kHz mono PCM
ws.onmessage = ({ data }) => {
if (data instanceof ArrayBuffer) return speaker.play(data); // the assistant's voice, same format
const e = JSON.parse(data);
if (e.type === "output_audio.clear") speaker.flush(); // the caller interrupted: stop at once
if (e.type === "tool.call") ws.send(JSON.stringify({ type: "tool.result", call_id: e.call_id, output: saveLead(e.arguments) }));
};Audio and events
Send the caller's audio as binary frames: pcm16 is 16-bit little-endian 16 kHz mono (web and apps), mulaw is 8 kHz G.711 (phone lines). The assistant's voice comes back as binary frames in the same format. JSON events tell you what happens; on output_audio.clear drop any audio you have buffered (the caller interrupted). On a twilio stream, RelayPoint speaks the media-stream protocol instead: media frames both ways, clear on barge-in, stop ends the call.
{ "type": "session.started", "session_id": "vls_…", "engine": "native", "audio_format": "pcm16", "sample_rate": 16000, "max_minutes": 15 }
{ "type": "input.speech_started" }
{ "type": "input.speech_stopped", "response_id": 3 }
{ "type": "response.started", "response_id": 3, "latency_ms": 640 }
{ "type": "transcript", "role": "user", "text": "Is the flat on Main Road still available?", "response_id": 3 }
{ "type": "tool.call", "call_id": "call_1", "name": "book_meeting", "arguments": { "date_time": "2026-11-14T10:00:00+02:00", "attendee_name": "Sipho" } }
{ "type": "output_audio.clear" }
{ "type": "session.ending", "reason": "credit_exhausted" }
{ "type": "session.ended", "reason": "credit_exhausted", "seconds": 412, "cost_usd": "0.391200" }
// You → RelayPoint: hang up now (no goodbye, billing stops at once)
{ "type": "session.end" }<!-- TwiML for an incoming call: bridge the line to RelayPoint (stream_url from the session). -->
<Response>
<Connect><Stream url="wss://voice.relaypoint.ai/v1/voice_live/vls_secret_…" /></Connect>
</Response>Turns, interruptions and latency
RelayPoint detects when the caller speaks and when they have finished (end_of_turn_ms of silence), then answers: the first audio usually arrives within 500 ms of the caller stopping, and a short filler covers a slower answer. If the caller talks while the assistant speaks, its audio stops at once and it listens. A cough or click doesn't interrupt, and the assistant's own voice echoed on a phone line doesn't either.
Sounding like a person
Calls run first on a native speech-to-speech engine; if it can't start or drops, the speech pipeline (speech-to-text, a fast model, text-to-speech) takes over with the conversation so far. affective_dialog (default true) answers in a tone that matches the caller's emotion and proactive_audio (default true) doesn't answer background speech or side talk. end_of_turn sets turn-taking: in semantic mode (default) the caller's words decide how long to wait once they pause — a finished sentence or question ends the turn after min_ms (default 250), a trailing "and…", a filler or digits being dictated wait up to max_ms (default 1400), otherwise end_of_turn_ms; each decision is sent as input.end_of_turn {state, wait_ms}. silence mode uses end_of_turn_ms only. On the speech pipeline a short acknowledgement (backchannels, default true; alias fillers) plays in the call's language if the answer isn't playing within about 0.4 s (response.started says first_audio: "backchannel" or "answer"), amounts, dates, times and South African phone numbers are read like a person would (normalize, default true), and the model may voice a sentence in a style ([empathetic, slow] …). When the caller talks over the assistant, its audio stops at once (output_audio.clear; audio is sent at most 0.3 s ahead) and the answer in progress is cancelled. Call audio is loudness-matched and crossfaded between pieces; phone_band (auto: 8 kHz phone calls only) shapes it to 300–3400 Hz. GET /v1/catalog lists every option in the rp/voice-live product's session_options.
Tools
Built-in tools: save_lead (name, phone, email, interest), book_meeting (date and time, attendee) and hand_over (the assistant says it is transferring the call, you get a handover event or webhook, and the session ends with handover). Add your own as { name, description, parameters } (JSON Schema). Answer a tool.call with { "type": "tool.result", "call_id", "output" }, or set tool_webhook_url: RelayPoint POSTs { type: "voice_live.tool_call", session_id, call_id, name, arguments } signed with RelayPoint-Signature (the session's webhook_secret) and uses your JSON answer. Without an answer within 8 s the conversation continues.
Limits and hanging up
max_duration_seconds (10–7200) is a hard limit on the call: when it is reached the assistant says a short goodbye and the call ends with time_limit (the lower of it and max_minutes applies; session.warning comes 30 s before on calls longer than a minute). silence_timeout_seconds (0–600, default 30) ends the call when the caller has said nothing for that long, counted after the assistant stops talking: a goodbye, then silence_timeout; 0 turns it off. To hang up from your side send { "type": "session.end" } (on a Twilio stream, stop): the call ends at once with client_ended, without a goodbye, and billing stops at that second; an answer still being prepared is not charged. GET /v1/catalog lists these options with their limits and defaults in the rp/voice-live product's session_options.
Billing and limits
A call is billed per second ($0.05 per minute at list price, your account's price and a reseller's mark-up apply) plus what it uses: speech-to-text seconds, model tokens and speech characters, each at its product price. Every line is in your usage, and GET /v1/voice_live/sessions lists each call with its duration, turns, average latency, cost and why it ended. Starting a call needs credit for a first minute; credit is then reserved a minute at a time. When it runs out (or a spending cap is reached), the assistant says goodbye and the call ends with credit_exhausted: never cut off mid-word, never below $0. max_minutes ends the call the same way (time_limit), with a session.warning 30 s before.