Switch language mid-call

November 10, 2026 · release

@voicethere/agent 0.35.2

Some callers start in one language and continue in another. A call that starts in English and moves to German used to need agent code that detected the switch, swapped the speech models and told the LLM what happened.

The new Switch language mid-call use case does that with the llm-language-switch agent template. The runner detects the language, switches speech-to-text and the voice, and replays the utterance. The agent then adds one line to the last caller message before each LLM call, so the reply comes back in the caller's language. Typed chat is answered in the language it is written in and does not change the voice.

What happens with other languages

If the caller speaks a language outside voice.allowedLanguages, the call does not switch. The agent says what it heard and which languages it can talk in, in the language of the call, and skips the LLM for that turn. Your client gets a language_detected message for every detection and a language message once a switch is committed.

Try it

The template needs @voicethere/agent 0.35.2 or newer.

Similar posts

← All posts