Skip to main content

Documentation Index

Fetch the complete documentation index at: https://anam.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Configure how eagerly your persona responds to the user and how it handles silence via voiceDetectionOptions in the persona config.
const personaConfig = {
  name: "Cara",
  avatarId: "30fa96d0-26c4-4e55-94a0-517025942e18",
  voiceId: "6bfbe25a-979d-40f3-a92b-5394170af54b",
  llmId: "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
  systemPrompt: "You are Cara, a helpful customer service representative.",
  voiceDetectionOptions: {
    endOfSpeechSensitivity: 0.5,
    silenceBeforeSkipTurnSeconds: 5,
    silenceBeforeSessionEndSeconds: 3,
    silenceBeforeAutoEndTurnSeconds: 5,
    speechEnhancementLevel: 0.8
  }
};

Options

OptionRangeDescription
endOfSpeechSensitivity0 – 1How eager the persona is to start speaking. 0 = waits until confident the user is done. 1 = responds earlier.
silenceBeforeSkipTurnSeconds0 – 900 secondsHow long the user can be silent before their turn is skipped and the persona prompts them. Set to 0 to disable turn skip so the persona never prompts a quiet user.
silenceBeforeSessionEndSeconds0 – 7200 secondsHow long the user can be silent before the session ends automatically. Set to 0 to disable automatic session end.
silenceBeforeAutoEndTurnSeconds0.5 – 10 secondsIf the user starts speaking then stops, how long to wait before treating the turn as complete.
speechEnhancementLevel0 – 1Level of noise reduction and voice enhancement applied to input audio. Higher values improve transcription accuracy in noisy environments.
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 May 19, 2026