voiceDetectionOptions in the persona config.
Choose a speech-to-text provider
In the Anam Lab, open your persona’s Advanced settings and choose an STT Provider under Voice Detection. You can also setvoiceDetectionOptions.sttProvider when you create or update a persona, or in an ephemeral personaConfig when requesting a session token.
Cartesia Ink-2
To use Cartesia Ink-2 in the Lab, choose a supported transcription language, then select Cartesia Ink-2 under Advanced > Voice Detection > STT Provider. For API requests, setvoiceDetectionOptions.sttProvider: "cartesia_ink_2" with a supported languageCode, or configure sttLanguages as described below. The provider value is cartesia_ink_2, not ink-2.
Language compatibility
WhensttLanguages is unset or null, the STT provider and languageCode must be compatible:
- If you choose an explicit unsupported
languageCode, the Lab disables the combination and the API rejects it. - If
languageCodeis omitted, empty,null, orinherit, the persona uses your organization’s default transcription language. - The Lab evaluates Inherit from org default against the current organization default and marks incompatible provider or language options as unavailable.
sttProvider applies only to full-pipeline sessions and is selected when the session starts. It is not supported with audio passthrough or avatar-only transports, which do not run Anam speech-to-text, and it cannot be switched with a mid-session voice detection update.Choose transcription languages
SetvoiceDetectionOptions.sttLanguages when you create or update a persona, or inside personaConfig when requesting a session token. This option controls which languages speech-to-text listens for, independently of languageCode.
Use supported language codes without duplicates. An empty array (
[]), inherit inside the array, and mixing "auto-detect" with language codes are invalid.
For example, include this configuration in an API request to listen for English and Spanish:
"sttLanguages": ["auto-detect"].
Provider support
When you setsttLanguages, the list determines provider compatibility instead of languageCode.
sttLanguages applies only to full-pipeline sessions. It is not supported with audio passthrough, LiveKit, or Agora, and cannot change mid-session. Configure it on a saved persona or when starting a session.Options
When you omit
endOfSpeechSensitivity, the default is 0.5 for anam and deepgram, and 0.67 for cartesia_ink_2.
Setting
silenceBeforeSkipTurnSeconds to 0 disables turn skip — the persona will not prompt a quiet user. Setting silenceBeforeSessionEndSeconds to 0 disables automatic session end on silence.
