interface STTOptions {
    apiKey?: string;
    baseUrl: string;
    clientReferenceId?: string;
    context?: string | ContextObject;
    enableAgentTextInput?: boolean;
    enableLanguageIdentification: boolean;
    enableSpeakerDiarization: boolean;
    endpointLatencyAdjustmentLevel?: number;
    endpointSensitivity?: number;
    languageHints?: string[];
    languageHintsStrict: boolean;
    maxEndpointDelayMs: number;
    model: string;
    numChannels: number;
    sampleRate: number;
    translation?: TranslationConfig;
}

Properties

apiKey?: string
baseUrl: string
clientReferenceId?: string
context?: string | ContextObject
enableAgentTextInput?: boolean

Accept the agent's own speech as text (stt-rt-v6 and later). Send it with SpeechStream.pushAgentText as it plays, so the model can tell the agent's voice from the user's: the agent's echo is dropped while a user talking over it is still heard.

enableLanguageIdentification: boolean
enableSpeakerDiarization: boolean
endpointLatencyAdjustmentLevel?: number

How aggressively the model reduces endpoint latency. Range: 0 to 3.

endpointSensitivity?: number

How readily the model emits speech endpoints. Range: -1.0 to 1.0. Higher values make endpoints more likely (finalize sooner); lower values make them less likely.

languageHints?: string[]
languageHintsStrict: boolean
maxEndpointDelayMs: number

Maximum delay in milliseconds between speech cessation and endpoint detection.

model: string
numChannels: number
sampleRate: number
translation?: TranslationConfig