interface STTOptions {
    apiKey?: string;
    baseURL?: string;
    enableLogging?: boolean;
    httpSession?: STTHTTPSession;
    includeTimestamps?: boolean;
    keyterms?: string[];
    languageCode?: string;
    model?: string;
    modelId?: string;
    noVerbatim?: boolean;
    sampleRate?: STTRealtimeSampleRates;
    secondaryLanguages?: string[];
    serverVad?: null | VADOptions;
    tagAudioEvents?: boolean;
    useRealtime?: boolean;
}

Properties

apiKey?: string
baseURL?: string
enableLogging?: boolean
httpSession?: STTHTTPSession
includeTimestamps?: boolean
keyterms?: string[]

Keywords or phrases to bias transcription towards. Scribe v2 batch accepts up to 1000 keyterms of at most 50 characters each; realtime accepts up to 50 keyterms of at most 20 characters each. Usage incurs additional costs.

languageCode?: string
model?: string
modelId?: string

Deprecated

Use model instead.

noVerbatim?: boolean
secondaryLanguages?: string[]

Language codes to constrain speech prediction to in addition to languageCode. Useful for bilingual applications where audio switches between a primary and a limited set of secondary languages. Only supported for Scribe v2 realtime. When omitted, the model predicts from its full set of supported languages.

serverVad?: null | VADOptions
tagAudioEvents?: boolean
useRealtime?: boolean