/en/articles/twilio-conversation-relay-no-longer-drops-the-call-when-your-voice-provider-goes-down-stt-and-tts
Twilio Conversation Relay no longer drops the call when your voice provider goes down: STT and TTS failover is here
Twilio's Conversation Relay now automatically switches to a fallback text-to-speech (TTS) or speech-to-text (STT) provider if the primary one fails, without hanging up the call or breaking the WebSocket. It's configured with in the TwiML and only switches once per type per call.

On November 18, 2026, Twilio announced that Conversation Relay now accepts fallback providers for text-to-speech (TTS) and speech-to-text (STT). If the provider a call is using goes down, Conversation Relay switches to the fallback, the person stays on the line, and your application keeps the same WebSocket. If you have an AI voice agent talking to customers, this tackles the worst-case scenario: an outage at ElevenLabs, Google, or Deepgram, which isn't your fault, hanging up on live calls.
A heads-up before we go on: I haven't tested it. Everything below comes from Twilio's changelog announcement and its official provider failover guide; where there's opinion, it's flagged as such.
What Conversation Relay is and why a fallback matters
Conversation Relay is the piece of Twilio Voice that turns a phone call into a WebSocket conversation with your application. Twilio transcribes what the person says (STT), sends you the text, your agent (usually an LLM) replies with text, and Twilio turns it into speech (TTS). You never touch audio: just text going in and out.
The catch is that this chain depends on external providers. Until now, according to the same guide, if TTS failed before the agent spoke, or if speech recognition failed, the call ended. For a voice bot that books appointments, collects payments, or handles support, that means a customer hung up on with no explanation.
How the failover works
According to Twilio's documentation:
- TTS and STT switch independently. If only the voice goes down, recognition stays on its provider, and vice versa.
- It works at startup and mid-call. A provider that fails to connect at the start is treated the same as one that drops halfway through.
- Pending text isn't lost. The fallback voice says what the agent had already sent and hadn't yet been spoken, in the same order. The sentence the person was hearing at the moment of the failure isn't repeated: the rest of that sentence is skipped.
- Recognition restarts on the fallback immediately, but Twilio warns that whatever the person says during the switch may be lost.
- Your application doesn't have to do anything. It doesn't receive an error; if you subscribe to the
config-updatedevent, you get aninfomessage namedconfigUpdatedthat tells you which provider, voice, or model is now active.

How to configure it
It all lives in the TwiML. You add a single <Failover> element inside <ConversationRelay>, next to the <Language> elements. There are three ways to do it:
- An empty
<Failover/>: applies Twilio's default fallbacks to all the languages in the session. <Failover>with nested<Language code="en-US"/>: only protects the languages you list; the rest are left without a fallback.- Explicit fallbacks: each
<Language>inside<Failover>acceptscode,ttsProvider,voice,transcriptionProvider, andspeechModel. Anything you omit takes the default fallback.
Here's an example with Spanish protected, adapted from the one in the documentation (which uses es-ES; change the code to whatever language your session declares):
<Response>
<Connect>
<ConversationRelay url="wss://example.com/socket" language="es-ES" events="config-updated">
<Failover>
<Language code="es-ES" transcriptionProvider="google" speechModel="telephony" />
</Failover>
</ConversationRelay>
</Connect>
</Response>
Twilio recommends specifying fallbacks explicitly. Two details that can bite you: the code has to be the full code (es-MX, not es) and it must match a language declared in the session. And if you set a provider without a voice or model, that provider's default is used, which may not be what you expect.
Who can be a fallback for whom
The guide lays down clear rules:
- The fallback must be different from the primary. Heads up: Twilio counts different ElevenLabs engines and Deepgram models as distinct providers (
nova-2andnova-3are "different"). - A TTS fallback can only be Google, Amazon, or ElevenLabs.
- An STT fallback can only be Google or Deepgram.
The default fallbacks Twilio publishes for en-US:
| Type | If the primary is… | Default fallback |
|---|---|---|
| TTS | ElevenLabs or Amazon | Google, voice en-US-Neural2-J |
| TTS | ElevenLabs, voice Mark | |
| STT | Deepgram nova-3-general |
|
| STT | Deepgram | Google telephony |
The guide only publishes that table for US English. I couldn't find the list of defaults for Spanish in the documentation; if your bot speaks es-MX, my recommendation is not to guess and to declare the fallback by hand.
What counts as a failure (and what doesn't)
This is the part worth reading carefully:
- TTS: a server error (HTTP 5xx) or the stream cutting off abruptly counts. Rate limiting (HTTP 429) only counts with ElevenLabs; a 429 from Google or Amazon doesn't trigger the switch.
- STT: the provider failing to start, returning an error mid-call, or losing the connection and being unable to reconnect all count.
- Configuration errors don't count, such as an invalid voice or a model that doesn't support that language. Those are reported the same way as before, with no failover.
The limits
Here's the fine print, according to Twilio:
- One switch per type per call. There's one failover for TTS and one for STT. If the fallback also fails, the call ends. It also doesn't go back to the original provider once it recovers: it writes it off for the rest of the call.
- It's defined in the TwiML, and that's it. Live configuration updates can't change the failover. If you switch mid-call to a language that wasn't in
<Failover>(and you didn't use the empty<Failover/>), that language has no fallback. - Some languages have no default fallback. Twilio mentions
multi, TTS and STT inca-ES, STT inml-IN, and TTS inkn-IN,ml-IN,mr-IN,te-IN, andth-TH. If you ask for failover on one of those without specifying a fallback, the call is rejected with error 64101. An empty<Failover/>is also rejected if any language in the session has no default. - The greeting may take a bit longer. With
<Failover>present, thewelcomeGreetingwaits until speech recognition is ready.
If the <Failover> configuration is wrong (two elements, a repeated or short code, a language that isn't in the session, a fallback identical to the primary), Twilio rejects the call at startup with error 64101 and sends it to the action of your <Connect>.
What this means for your voice bot
My take: this is one of those boring features that separate a demo from a product. An AI voice agent has more external pieces than a text-only WhatsApp bot, and each one is a point where the call can fall over. Having Twilio absorb the failure without your code having to detect it or reconnect anything is exactly what you want in production.
But it's not magic, and there are three things to keep in mind:
- Your brand may change voice mid-call. If you use a cloned or very distinctive voice on ElevenLabs and the fallback is a Google neural voice, the person is going to notice the change. The guide suggests picking a fallback that sounds similar; it's worth spending some time on that.
- Test the TwiML in all your languages. An empty
<Failover/>with a language that has no default won't warn you gracefully in development: it rejects the call. Better to find out in testing than with customers. - Log
configUpdated. Twilio recommends subscribing to the event so you know when a call switched providers. It's your only signal that something failed and the call survived; without it, you find out from the customer's complaint.
If you already have an agent on Conversation Relay, the cost of adopting this is adding a few lines to the TwiML. The cost of not doing it is continuing to hang up on people every time your voice provider has a bad day.
Sources
- Conversation Relay now supports speech-to-text and text-to-speech provider failover (Twilio Changelog, Nov 18, 2026)
- Provider failover for Conversation Relay (Twilio documentation)
<ConversationRelay>TwiML noun (Twilio documentation)- Update configuration during a call (Twilio documentation)
- Conversation Relay WebSocket messages (Twilio documentation)