interface AssemblyAIOptions {
    agent_context?: string;
    end_of_turn_confidence_threshold?: number;
    format_turns?: boolean;
    keyterms_prompt?: string[];
    max_turn_silence?: number;
    min_end_of_turn_silence_when_confident?: number;
    mode?: "min_latency" | "balanced" | "max_accuracy";
    speaker_labels?: boolean;
    voice_focus?: "near-field" | "far-field";
    voice_focus_threshold?: number;
}

Properties

agent_context?: string

Context to bias recognition. Only supported with u3-rt-pro. Max 1500 chars.

end_of_turn_confidence_threshold?: number

End of turn confidence threshold. Default: 0.01.

format_turns?: boolean

Enable turn formatting. Default: false.

keyterms_prompt?: string[]

Key terms prompt for recognition. Default: not specified.

max_turn_silence?: number

Maximum turn silence in milliseconds. Default: not specified.

min_end_of_turn_silence_when_confident?: number

Minimum silence duration in milliseconds when confident about end of turn. Default: 0.

mode?: "min_latency" | "balanced" | "max_accuracy"

Accuracy/latency preset. Only supported with u3-rt-pro.

speaker_labels?: boolean

Enable speaker diarization. Default: false.

voice_focus?: "near-field" | "far-field"

Isolate the primary voice. Only supported with u3-rt-pro.

voice_focus_threshold?: number

Background suppression strength. Only supported with u3-rt-pro.