Skip to main content
Choose how Anam transcribes user speech and configure how eagerly your persona responds via 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 set voiceDetectionOptions.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, set voiceDetectionOptions.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

When sttLanguages 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 languageCode is omitted, empty, null, or inherit, 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.
Set an explicit languageCode when you need to guarantee a specific STT provider. If your organization default changes to a language that the saved provider does not support, Anam ignores that provider selection for inherited-language sessions and uses the platform default provider instead. The session still starts, and the saved persona configuration is not changed.
To resolve an inherited-language mismatch, choose a supported language explicitly, select another provider, or contact Anam support to change your organization default. See Multilingual Support for language configuration details.
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

Set voiceDetectionOptions.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:
For automatic detection, replace the list with "sttLanguages": ["auto-detect"].

Provider support

When you set sttLanguages, 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.
The current JavaScript and Python SDK persona configuration types do not expose this option. Configure it through the API, then use the saved persona or the returned session token with either SDK. See Create session token.

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.
These settings can be set when creating or updating a persona. See the API Reference for details.
Last modified on November 17, 2026