From 70a9a70d297a3f9054f4957dffc6c14b025e8547 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Wed, 25 Nov 2026 13:40:40 -0800 Subject: [PATCH] Whats new for the week of 11-23-26 --- fern/assistants/assistant-hooks.mdx | 2 ++ fern/assistants/keypad-input-settings.mdx | 38 +++++++++++++++++++- fern/calls/call-ended-reason.mdx | 2 ++ fern/changelog/2026-11-23.mdx | 18 ++++++++++ fern/customization/custom-tts.mdx | 4 ++- fern/customization/speech-configuration.mdx | 2 ++ fern/observability/monitoring-quickstart.mdx | 6 ++-- fern/providers/cloud/cloudflare.mdx | 2 +- fern/providers/cloud/supabase.mdx | 2 +- fern/providers/model/openai.mdx | 5 +-- fern/providers/transcriber/assembly-ai.mdx | 4 +++ fern/providers/transcriber/elevenlabs.mdx | 26 +++++++++++++- fern/providers/transcriber/reson8.mdx | 2 ++ fern/providers/transcriber/soniox.mdx | 2 ++ fern/providers/voice/cartesia.mdx | 22 ++++++++++++ fern/server-url/setting-server-urls.mdx | 3 +- fern/tools/hang-up.mdx | 2 +- fern/voice-fallback-plan.mdx | 15 ++++++-- 18 files changed, 143 insertions(+), 14 deletions(-) create mode 100644 fern/changelog/2026-11-23.mdx diff --git a/fern/assistants/assistant-hooks.mdx b/fern/assistants/assistant-hooks.mdx index e7c19812b..de5e7b392 100644 --- a/fern/assistants/assistant-hooks.mdx +++ b/fern/assistants/assistant-hooks.mdx @@ -176,6 +176,8 @@ Perform multiple actions—say a message, call a function, and transfer the call Use `"oneOf": ["pipeline-error"]` as a catch-all filter for any pipeline-related error reason. +If the call is ending because the voice failed and no [fallback voice](/voice-fallback-plan) is left, the hook's actions still run to the end. Tools such as `transferCall`, `endCall`, and functions run, and a `say` that plays an audio file still plays. A `say` with text is silent, because it uses the failed voice. If the hooks don't run, for example while voicemail detection is still active, the call ends with the reason that triggered the hooks. + ## Example: Handle speech interruptions Respond when the assistant's speech is interrupted by the customer: diff --git a/fern/assistants/keypad-input-settings.mdx b/fern/assistants/keypad-input-settings.mdx index 9834a253e..c89e9ef16 100644 --- a/fern/assistants/keypad-input-settings.mdx +++ b/fern/assistants/keypad-input-settings.mdx @@ -15,7 +15,7 @@ Vapi collects the keys the caller presses and processes them when one of these h Set the timeout to 0 when input should only be processed after the caller enters a delimiter. With a timeout of 0, always configure at least one delimiter, or the input is never processed. -When Vapi processes the collected keys, it adds them to the conversation as a user message, for example, `User's Keypad Entry: 1234`. If the assistant is speaking at that moment, it stops and responds to the entry. The entry is available to the model and is saved in the call's messages and transcript when transcript artifacts are enabled. See [Handle sensitive input](#handle-sensitive-input) before collecting confidential values. +When Vapi processes the collected keys, it adds them to the conversation as a user message, for example, `User's Keypad Entry: 1234`. If the assistant is speaking at that moment, it stops and responds to the entry, unless [`triggerResponseEnabled`](#add-entries-without-a-reply) is `false`. The entry is available to the model and is saved in the call's messages and transcript when transcript artifacts are enabled. See [Handle sensitive input](#handle-sensitive-input) before collecting confidential values. Keypad input works on phone calls on Twilio, Telnyx, Vonage, Vapi numbers, and BYO SIP trunks. It doesn't work on web calls or WebSocket calls. @@ -58,6 +58,8 @@ Configure caller keypad input with `keypadInputPlan` when you create or update a | `enabled` | boolean | Enables caller keypad input. Default is `false`. | | `timeoutSeconds` | number | Processes the collected input after 1–10 seconds pass with no new key. Default is 2 seconds. Set it to `0` to wait for a delimiter. | | `delimiters` | array of strings | Processes input when the caller enters one of these keys. Each item must be `#`, `*`, or `""`. Default is `["#", "*"]`. Use an empty array to process input on the timeout only; `#` and `*` are then included in the entry like any other key. Don't combine an empty array with a timeout of `0`, because the input is never processed. | +| `triggerResponseEnabled` | boolean | Controls whether a finished entry makes the assistant reply. Default is `true`. Set it to `false` to add the entry to the conversation without a reply. | +| `variableName` | string | Stores each finished entry in a call variable with this name. The value keeps leading zeros, and a later entry replaces the earlier one. The name must start with a letter, contain only letters, numbers, and underscores, and be 1–40 characters. Not supported on GPT-Live assistants. | This example processes input after 2 seconds or when the caller enters `#`: @@ -71,6 +73,40 @@ This example processes input after 2 seconds or when the caller enters `#`: } ``` +## Add entries without a reply + +By default, a finished entry interrupts the assistant and makes it reply. Set `triggerResponseEnabled` to `false` to add the entry to the conversation without a reply, so the assistant keeps talking. The model reads the entry on the caller's next turn, including when the entry arrives while Vapi is still detecting the end of that turn. + +## Use an entry in a transfer + +Set `variableName` to store each finished entry as a call variable. Reference it as `{{variableName}}` in a transfer destination, for example in `sipHeaders`, so the model doesn't have to repeat the digits. The value also appears in the call's `artifact.variableValues`. + +This plan adds entries without a reply and stores them in `account_id`: + +```json +{ + "keypadInputPlan": { + "enabled": true, + "timeoutSeconds": 0, + "delimiters": ["#"], + "triggerResponseEnabled": false, + "variableName": "account_id" + } +} +``` + +This SIP transfer destination sends the stored entry in a header: + +```json +{ + "type": "sip", + "sipUri": "sip:support@example.com", + "sipHeaders": { + "x-account-id": "{{account_id}}" + } +} +``` + ## Handle sensitive input Keypad input can collect general caller data, but sensitive values need additional controls. For payment information, follow the [PCI compliance guide](/security-and-privacy/pci) to isolate collection and prevent sensitive artifacts from being recorded or logged. diff --git a/fern/calls/call-ended-reason.mdx b/fern/calls/call-ended-reason.mdx index a3d1e84bf..368d355d5 100644 --- a/fern/calls/call-ended-reason.mdx +++ b/fern/calls/call-ended-reason.mdx @@ -143,6 +143,8 @@ Each voice provider has specific error codes. Common patterns: **Supported providers:** ElevenLabs, Cartesia, Deepgram, Azure, OpenAI, Rime AI, Smallest AI, Neuphonic, Hume, Sesame, Inworld, Minimax, WellSaid, Custom Voice. +A [custom voice](/customization/custom-voices/custom-tts) ends the call with `pipeline-error-custom-voice-failed` when your voice server returns an HTTP error or doesn't respond, and no fallback voice is left. Your server owns these failures, so they are not reported as Vapi faults. + ## Pipeline errors: transcriber (STT) Common transcriber error patterns: diff --git a/fern/changelog/2026-11-23.mdx b/fern/changelog/2026-11-23.mdx new file mode 100644 index 000000000..f6da9ba44 --- /dev/null +++ b/fern/changelog/2026-11-23.mdx @@ -0,0 +1,18 @@ +# What's New: Week of November 23, 2026 + +## New models and transcribers + +1. **GPT-6.1 Terra**: OpenAI's [GPT-6.1 Terra](/providers/model/openai) model (`gpt-6.1-terra`) is now available, with tool calls, parallel tool calls, and structured outputs. Its default reasoning effort is `low`, and `minimal` isn't supported. +2. **ElevenLabs Scribe v3 Live**: [ElevenLabs transcribers](/providers/transcriber/elevenlabs) now support Scribe v3 Live (`scribe_v3_live`), shown as Beta in the Dashboard. Set `language` to `multi` to transcribe callers who switch languages during a call, and use the new `languages` list to hint which languages to expect. Scribe v3 Live accepts `keyterms`, up to 50 terms of 20 characters each. + +## Features + +3. **Keypad entries without a reply**: [Keypad input](/documentation/assistants/conversation-behavior/keypad-input-settings) has two new settings in `keypadInputPlan`, both off by default. Set `triggerResponseEnabled` to `false` to add the caller's keypad entry to the conversation without the assistant replying right away; the assistant sees it on the caller's next turn. Set `variableName` to save each entry as a call variable, with leading zeros kept, so you can use it in a transfer destination such as a SIP header. +4. **Interruptions in Japanese, Chinese, Cantonese, and Thai**: Callers speaking Japanese, Chinese, Cantonese, or Thai can now interrupt the assistant when the [stop speaking plan's](/customization/speech-configuration) `numWords` is 2 or more. Words in these languages are now counted individually, instead of a whole sentence counting as one word. + +## Fixes and improvements + +5. **Assistant turns after a voice fallback**: Fixed missing assistant turns in transcripts and conversation history when calls using ElevenLabs with `modelOutputInMessagesEnabled` enabled switch to a non-ElevenLabs [fallback voice](/voice-fallback-plan). +6. **Fallback voice recovery**: The [fallback voice](/voice-fallback-plan) now takes over in more cases: when a message fails partway through, when no audio arrives within 3 seconds, when audio stalls mid-reply, when Deepgram or ElevenLabs fails to connect three times in a row, and when a voice fails before an outbound call is answered. A message that failed is spoken again on the fallback voice, and a first message that already started playing isn't repeated. +7. **Custom voice server errors**: When a [custom voice](/customization/custom-voices/custom-tts) server returns an HTTP error or doesn't respond, the voice now fails and the fallback voice takes over. Without a fallback voice, the call ends with `pipeline-error-custom-voice-failed`. Before, the caller heard the error as noise or the voice went silent. +8. **Soniox default model**: [Soniox transcribers](/providers/transcriber/soniox) with no `model` set now use `stt-rt-v6` instead of `stt-rt-v5`. Assistants that set v4 or v5 are unchanged. diff --git a/fern/customization/custom-tts.mdx b/fern/customization/custom-tts.mdx index 71f833937..785722201 100644 --- a/fern/customization/custom-tts.mdx +++ b/fern/customization/custom-tts.mdx @@ -362,6 +362,8 @@ Transfer-Encoding: chunked ```` +If your server returns a 4xx or 5xx status, or doesn't respond, Vapi doesn't play the response body. The voice fails, and the [fallback voice](/voice-fallback-plan) takes over if you configured one. Without a fallback voice, the call ends with `pipeline-error-custom-voice-failed`. + ## Audio format requirements ### PCM specifications @@ -479,7 +481,7 @@ console.error('Test error:', error); - **Symptoms:** VAPI doesn't receive your audio response, calls may drop + **Symptoms:** VAPI doesn't receive your audio response. The call switches to a fallback voice, or ends with `pipeline-error-custom-voice-failed` if no fallback voice is left **Common causes:** - TTS processing takes longer than configured timeout diff --git a/fern/customization/speech-configuration.mdx b/fern/customization/speech-configuration.mdx index 044e52fca..8466c060f 100644 --- a/fern/customization/speech-configuration.mdx +++ b/fern/customization/speech-configuration.mdx @@ -86,6 +86,8 @@ The Stop Speaking Plan defines when the assistant stops talking after detecting - **Words to Stop Speaking**: Define how many words the customer needs to say before the assistant stops talking. If you want immediate reaction, set this to 0. Increase it to avoid interruptions by brief acknowledgments like "okay" or "right". **Example:** While setting an appointment with a clinic, set `numWords` to 2-3 words to allow customers to finish brief clarifications without triggering interruptions. + In Japanese, Chinese, Cantonese, and Thai, which are written without spaces between words, Vapi counts each word separately, so callers can interrupt when `numWords` is 2 or more. Partial transcripts in these languages are counted conservatively, so an interruption can trigger slightly later than in languages that use spaces. + - **Voice Activity Detection**: Adjust how long the customer needs to be speaking before the assistant stops. The default is 0.2 seconds, but you can tweak this to balance responsiveness and avoid false triggers. **Example:** For a banking call center, setting a higher `voiceSeconds` value ensures accuracy by reducing false positives. This avoids interruptions caused by background sounds, even if it slightly delays the detection of speech onset. This tradeoff is essential to ensure the assistant processes only correct and intended information. diff --git a/fern/observability/monitoring-quickstart.mdx b/fern/observability/monitoring-quickstart.mdx index 507ccaedd..c053c7653 100644 --- a/fern/observability/monitoring-quickstart.mdx +++ b/fern/observability/monitoring-quickstart.mdx @@ -102,7 +102,7 @@ Notifiers are alert channels (email, Slack, or webhook) that send notifications 1. Choose a notifier type: **Email**, **Slack**, or **Webhook** 2. For email: enter the recipient email address - 3. For Slack: paste your Slack webhook URL + 3. For Slack: paste your Slack webhook URL. It must use `https://` and resolve to a public address. 4. For webhook: enter your endpoint URL 5. Give the notifier a name (e.g., "Engineering Slack Channel") 6. Click **Save** @@ -175,9 +175,9 @@ When a webhook notifier is attached to a trigger, Vapi sends a single `POST` req | `message.type` | Always `issue.created`. This is the only monitoring event Vapi emits (see [below](#one-webhook-per-issue)). | | `message.timestamp` | When the alert was sent, in milliseconds since the Unix epoch. | | `message.orgId` | The organization that owns the monitor and issue. | -| `message.issue.totalCalls` | Calls evaluated in the window. | +| `message.issue.totalCalls` | Calls evaluated in the window. It covers the same assistants and window as `failingCalls`. | | `message.issue.failingCalls` | Calls that matched the Insight during the evaluation that created the issue. Your failure rate for that evaluation is `failingCalls / totalCalls`. The `callsCount` returned by `GET /monitoring/issue/:id` can increase as later evaluations add affected calls to the active issue. | -| `message.issue.evaluationStartAt` | Start of the evaluation window. | +| `message.issue.evaluationStartAt` | Start of the evaluation window. The window ends at the trigger's scheduled run time, and a relative start in the Insight's `timeRange`, such as `-1h`, is measured back from that time. | | `message.monitor.category` | `technical`, `infrastructure`, `effectiveness`, or `compliance`. The payload shape is identical across categories, so this field is how you tell them apart. | | `message.monitor.trigger.insight.name` | Human-readable name of the metric that breached, for display. | | `message.monitor.trigger.insight.id` | Stable ID of the configured Insight. Match on this rather than `name` for routing logic. | diff --git a/fern/providers/cloud/cloudflare.mdx b/fern/providers/cloud/cloudflare.mdx index 912b4e967..9a61cd60e 100644 --- a/fern/providers/cloud/cloudflare.mdx +++ b/fern/providers/cloud/cloudflare.mdx @@ -16,7 +16,7 @@ See these [instructions](https://developers.cloudflare.com/r2/api/s3/tokens/) fo Setting | Description ------------------------ | ------------------------------------------------------- -Cloudflare Account ID | Your customer account id for Cloudflare +Cloudflare Account ID | Your customer account id for Cloudflare (this is a string of 32 hexadecimal characters) Cloudflare Account Email | The email address associated with the account id Cloudflare API Key/Token | The value of an API Key/Token generated for the account (Cloudflare uses the terms API Key and API Token interchangeably) Bucket Name | The name of the bucket in R2 to upload recordings to diff --git a/fern/providers/cloud/supabase.mdx b/fern/providers/cloud/supabase.mdx index 6d67de1b1..aac02719f 100644 --- a/fern/providers/cloud/supabase.mdx +++ b/fern/providers/cloud/supabase.mdx @@ -18,7 +18,7 @@ Setting | Description ------------------------- | ------------------------------------------------------- Bucket Name | The name of the bucket in Supabase Storage to upload recordings to Storage Region | The region of the Supabase project -Storage Endpoint | The endpoint of the Supabase Storage to upload recordings to +Storage Endpoint | The endpoint of the Supabase Storage to upload recordings to. It must resolve to a public address; Vapi doesn't connect to a localhost, private network, or link-local address. Bucket Path Prefix | An optional path prefix for recordings uploaded to the bucket. Supports [LiquidJS Date format](https://liquidjs.com/filters/date.html) templating - for example, `{{ "now" \| date: "%Y/%m/%d" }}` renders as YYYY/MM/DD. Storage Access Key ID | The access key id for Supabase Storage Storage Secret Access Key | The secret access key for Supabase Storage, associated with the access key id diff --git a/fern/providers/model/openai.mdx b/fern/providers/model/openai.mdx index 78dd01b91..bd76962d5 100644 --- a/fern/providers/model/openai.mdx +++ b/fern/providers/model/openai.mdx @@ -32,6 +32,7 @@ For additional API configuration options, review the [`OpenAIModel` fields](/api | Model | Model ID | | --- | --- | +| GPT 6.1 Terra | `gpt-6.1-terra` | | GPT 6 Luna | `gpt-6-luna` | | GPT 5.6 Sol | `gpt-5.6-sol` | | GPT 5.6 Terra | `gpt-5.6-terra` | @@ -114,7 +115,7 @@ Each model accepts only the efforts OpenAI supports for it: | Model | Accepted values | | --- | --- | -| GPT 6 Luna | `none`, `low`, `medium`, `high`, `xhigh` | +| GPT 6.1 Terra, GPT 6 Luna | `none`, `low`, `medium`, `high`, `xhigh` | | GPT 5.6 Sol, GPT 5.6 Terra, GPT 5.6 Luna | `none`, `low`, `medium`, `high`, `xhigh` | | GPT 5.4, GPT 5.4 Mini, GPT 5.2 | `none`, `low`, `medium`, `high`, `xhigh` | | GPT 5, GPT 5 Mini, GPT 5 Nano | `minimal`, `low`, `medium`, `high` | @@ -142,7 +143,7 @@ For latency-sensitive assistants, you can run supported OpenAI models in OpenAI' | `auto` | Uses the service tier configured for your OpenAI project. | | `default` | Standard processing and billing. | -`serviceTier` applies only to models that support fast processing: `gpt-6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, and `gpt-5.5`. It is ignored for other models. When unset, Vapi uses the service tier configured for your OpenAI project. See [OpenAI's pricing](https://openai.com/api/pricing) for fast-tier rates, and the [`OpenAIModel` fields](/api-reference/assistants/create#request.body.model.OpenAI) in the Create Assistant API reference. +The `serviceTier` field applies only to models that support fast processing: `gpt-6.1-terra`, `gpt-6-luna`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, and `gpt-5.5`. It is ignored for other models. When unset, Vapi uses the service tier configured for your OpenAI project. See [OpenAI's pricing](https://openai.com/api/pricing) for fast-tier rates, and the [`OpenAIModel` fields](/api-reference/assistants/create#request.body.model.OpenAI) in the Create Assistant API reference. ```bash curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \ diff --git a/fern/providers/transcriber/assembly-ai.mdx b/fern/providers/transcriber/assembly-ai.mdx index cf00d438b..12b509c60 100644 --- a/fern/providers/transcriber/assembly-ai.mdx +++ b/fern/providers/transcriber/assembly-ai.mdx @@ -110,6 +110,10 @@ This guide details how to setup AssemblyAI as a transcriber for your assistant. +### VAD-assisted endpointing + +When AssemblyAI detects the end of a turn while Vapi's voice activity detection still hears the caller, Vapi waits for the caller to stop before ending the turn. This reduces replies during short pauses, but replies can be slightly slower. It's on by default. To turn it off, set `transcriber.vadAssistedEndpointingEnabled` to `false`, or turn off **VAD-assisted endpointing** in the transcriber's advanced settings in the Dashboard. The setting has no effect when `startSpeakingPlan.smartEndpointingPlan` is set. + ### Supported languages Vapi supports AssemblyAI's English and multilingual Universal-Streaming modes, plus the Universal 3.5 Pro and Universal 3.6 Pro models. diff --git a/fern/providers/transcriber/elevenlabs.mdx b/fern/providers/transcriber/elevenlabs.mdx index 76ea50fd3..a4a12a0a1 100644 --- a/fern/providers/transcriber/elevenlabs.mdx +++ b/fern/providers/transcriber/elevenlabs.mdx @@ -35,15 +35,17 @@ For additional API configuration options, review the [`ElevenLabsTranscriber` fi | Scribe v1 | `scribe_v1` | | Scribe v2 | `scribe_v2` | | Scribe v2 Realtime | `scribe_v2_realtime` | +| Scribe v3 Live | `scribe_v3_live` | ### Keyterms -To help Scribe recognize names, product terms, and other words it might mishear, list them in `transcriber.keyterms`. Keyterms work with Scribe v2 and Scribe v2 Realtime. Vapi rejects `keyterms` on Scribe v1. +To help Scribe recognize names, product terms, and other words it might mishear, list them in `transcriber.keyterms`. Keyterms work with Scribe v2, Scribe v2 Realtime, and Scribe v3 Live. Vapi rejects `keyterms` on Scribe v1. | Model | Maximum terms | Maximum characters per term | | --- | --- | --- | | Scribe v2 | 100 | 50 | | Scribe v2 Realtime | 50 | 20 | +| Scribe v3 Live | 50 | 20 | Each term can be at most five words and can't contain `<`, `>`, `{`, `}`, `[`, `]`, or `\`. Sending keyterms adds ElevenLabs' keyterm prompting rate to the transcriber cost. @@ -62,6 +64,28 @@ curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \ For more on improving recognition of specific terms, see [Keywords and keyterm prompting](/customization/custom-keywords#elevenlabs-keyterms). +### Multilingual transcription + +Scribe v3 Live can transcribe callers who switch between languages. Set `transcriber.language` to `multi` for automatic code-switching, or set it to one primary language code. + +To hint at other languages callers might speak, list them in `transcriber.languages` as ISO 639-1 codes. Vapi removes duplicate codes. In assistant overrides, send an empty array (`[]`) to clear hints inherited from the assistant. + +```bash +curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \ + -H "Authorization: Bearer $VAPI_API_KEY" \ + -H "Content-Type: application/json" \ + -d '{ + "transcriber": { + "provider": "11labs", + "model": "scribe_v3_live", + "language": "multi", + "languages": ["en", "es"] + } + }' +``` + +The `multi` language value and the `languages` field work only with Scribe v3 Live. Vapi rejects them on other Scribe models. + ### Supported languages The following languages are supported by the current Scribe models and accepted by Vapi. See [ElevenLabs' speech-to-text documentation](https://elevenlabs.io/docs/overview/capabilities/speech-to-text/#supported-languages) for provider details. diff --git a/fern/providers/transcriber/reson8.mdx b/fern/providers/transcriber/reson8.mdx index c5802fcbf..3a0afce7c 100644 --- a/fern/providers/transcriber/reson8.mdx +++ b/fern/providers/transcriber/reson8.mdx @@ -55,6 +55,8 @@ For additional API configuration options, review the [`Reson8Transcriber` fields Vapi accepts the 56 languages Reson8 supports on Rumble-2. Set one language when you know it ahead of time: it gives better transcription quality than automatic detection. +The same languages work for a Reson8 fallback transcriber. In the Dashboard, the transcriber's language picker lets you select several languages, which Vapi saves as a comma-separated list. A blank language shows as **Automatic**. + | Language | Language code | | --- | --- | | Afrikaans | `af` | diff --git a/fern/providers/transcriber/soniox.mdx b/fern/providers/transcriber/soniox.mdx index 4871bd5cf..35529da5f 100644 --- a/fern/providers/transcriber/soniox.mdx +++ b/fern/providers/transcriber/soniox.mdx @@ -37,6 +37,8 @@ For additional API configuration options, review the [`SonioxTranscriber` fields | Soniox STT Real-Time v6 | `stt-rt-v6` | | Soniox STT Real-Time v5 | `stt-rt-v5` | +If you don't set `transcriber.model`, Vapi uses `stt-rt-v6`. + ### Automatic language detection Set `transcriber.languages` to an empty array to let Soniox automatically detect and transcribe any supported language, including code-switching within a conversation. You can provide expected language codes, such as `["en", "es"]`, instead. Vapi defaults `transcriber.languageHintsStrict` to `true`, which restricts transcription to the provided languages. Set it to `false` to use the values as hints while allowing other supported languages. See [Soniox language hints](https://soniox.com/docs/stt/concepts/language-hints) for provider details. diff --git a/fern/providers/voice/cartesia.mdx b/fern/providers/voice/cartesia.mdx index 188cc4967..a80aab68e 100644 --- a/fern/providers/voice/cartesia.mdx +++ b/fern/providers/voice/cartesia.mdx @@ -52,6 +52,8 @@ For additional API configuration options, review the [`CartesiaVoice` fields](/a Language support depends on the selected model. The following model and language combinations are currently supported by Vapi. Dated snapshot models (for example, `sonic-3-2026-01-12`) match their base model's language coverage. +On Sonic 3, Sonic 3.5, and Sonic 3.6 models, including their snapshots, any voice can speak any language the model supports. Set `voice.language` to choose it. + | Language | Language code | Sonic 3.6 | Sonic 3.5 / Sonic 3 | Sonic Preview | | --- | --- | --- | --- | --- | | Arabic | `ar` | X | X | | @@ -99,6 +101,26 @@ Language support depends on the selected model. The following model and language | Urdu | `ur` | X | | | | Vietnamese | `vi` | X | X | | +### Regional locales + +On `sonic-3.6` and `sonic-3.6-2026-08-27`, you can set `voice.language` through the API to a regional locale, such as `es-MX` or `en-GB`, instead of a base language code. Vapi accepts 56 locales. See the [`CartesiaVoice` fields](/api-reference/assistants/create#request.body.voice.CartesiaVoice) for the full list. + +Locale codes are case-insensitive and accept an underscore, so `es_mx` and `ES-MX` both work. Vapi stores them in the standard form, such as `es-MX`. If you set a locale without setting `voice.model`, Vapi uses `sonic-3.6`. Vapi rejects locale codes on other models. + +```bash +curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \ + -H "Authorization: Bearer $VAPI_API_KEY" \ + -H "Content-Type: application/json" \ + -d '{ + "voice": { + "provider": "cartesia", + "model": "sonic-3.6", + "voiceId": "VOICE_ID", + "language": "es-MX" + } + }' +``` + ## Related diff --git a/fern/server-url/setting-server-urls.mdx b/fern/server-url/setting-server-urls.mdx index 7d0d5c1a8..c5570a959 100644 --- a/fern/server-url/setting-server-urls.mdx +++ b/fern/server-url/setting-server-urls.mdx @@ -229,7 +229,8 @@ Vapi sends server messages only to public addresses. If a server URL is, or reso - A redirect to the same site is followed. - A `301`, `302`, or `303` redirect to a different site is followed as a `GET` request, without your headers or the message body. -- A `307` or `308` redirect to a different site is refused. +- A `307` or `308` redirect between your server URL's host and its `www.` version (for example, from `example.com` to `www.example.com`) is followed with your headers and the message body, if the scheme stays the same and both use the default port. +- A `307` or `308` redirect to any other site is refused. When Vapi refuses an address, the call log shows `Vapi did not send webhook. Server URL destination was refused: it must resolve to a public address.` Vapi doesn't retry the message. diff --git a/fern/tools/hang-up.mdx b/fern/tools/hang-up.mdx index b1d659fd1..4ea56a54a 100644 --- a/fern/tools/hang-up.mdx +++ b/fern/tools/hang-up.mdx @@ -75,7 +75,7 @@ The Hang Up tool and end call phrases are the ways an assistant ends a call from | Silence timeout and maximum duration | The caller is silent for too long, or the call reaches its maximum length | [Call timeout settings](/documentation/assistants/conversation-behavior/call-timeout-settings) | | Idle messages | The caller stays silent after the assistant's idle messages, and the final idle hook runs `endCall` | [Idle messages](/assistants/idle-messages) | | Assistant hooks | A call event fires, such as `customer.speech.timeout` or `call.timeElapsed`, and the hook runs `endCall` | [Assistant hooks](/assistants/assistant-hooks) and the [`hooks`](/api-reference/assistants/create#request.body.hooks) field | -| Tool messages | A function or API Request tool speaks a `request-complete` or `request-failed` message with `endCallAfterSpokenEnabled` set to `true` | [Create Tool API reference](/api-reference/tools/create) | +| Tool messages | A tool, such as a function, API Request, or SIP Request tool, speaks a `request-complete` or `request-failed` message with `endCallAfterSpokenEnabled` set to `true` | [Create Tool API reference](/api-reference/tools/create) | See [Call end reasons](/calls/call-ended-reason) for the ended reason each method records. diff --git a/fern/voice-fallback-plan.mdx b/fern/voice-fallback-plan.mdx index b96bd36ae..1dcbbb6a5 100644 --- a/fern/voice-fallback-plan.mdx +++ b/fern/voice-fallback-plan.mdx @@ -19,15 +19,26 @@ Built-in fallback behavior without a configured plan depends on the selected voi Fallback starts when the current voice: -- Returns an error. +- Returns an error. This includes an error that happens before the call starts listening, for example before an outbound call is answered. The fallback voice takes over when the call starts. +- Fails partway through a message. The fallback voice takes over for the next turn. - Sends no audio within 3 seconds after the model finishes a reply. +- Sends no audio within 3 seconds after a message, such as the first message or the end call message, reaches the voice provider. +- Stops sending audio for 3 seconds partway through a reply. +- Can't connect to the provider. Deepgram and ElevenLabs voices fail after three failed connection attempts in a row with no open connection. Inworld voices fail when they run out of connection retries. - Finishes an ElevenLabs reply with no audio. Vapi retries that reply once before it switches voices. +- Is a [custom voice](/customization/custom-voices/custom-tts#your-response-requirements) and your server returns an HTTP error or doesn't respond. When fallback starts, the assistant: 1. Tries the first voice in `voice.fallbackPlan.voices`. 2. Tries the next voice if a backup also fails or goes silent. -3. If no voice succeeds, may end the call after an error. After silence, the call continues with the current voice. +3. If no voice succeeds, can end the call after an error. Any `call.ending` [hooks](/assistants/assistant-hooks#example-combine-actions-on-pipeline-error) run before the call ends. After silence, or when an ElevenLabs voice can't connect, the call continues with the current voice. The call can stay silent until the caller hangs up or a silence or duration limit ends it. + +After the switch: + +- A message that failed before any of it played, including the end call message, is spoken again on the fallback voice. +- A first message that already started playing isn't repeated or cut off. The fallback voice speaks from the caller's next turn. +- If `modelOutputInMessagesEnabled` is on and the fallback voice isn't from ElevenLabs, Vapi transcribes the assistant's speech instead, so the assistant's turns are still recorded in the transcript and conversation history. ## Configure via Dashboard