Skip to main content
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: "0934d97d-0c3a-4f33-91b0-5e136a0ef466",
  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.
silenceBeforeSkipTurnSecondssecondsHow long the user can be silent before their turn is skipped and the persona prompts them.
silenceBeforeSessionEndSecondssecondsHow long the user can be silent before the session ends automatically.
silenceBeforeAutoEndTurnSecondssecondsIf 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.
These settings can be set when creating or updating a persona. See the API Reference for details.