interface STTOptions {
    apiKey?: string;
    baseURL?: string;
    client?: OpenAI;
    detectLanguage: boolean;
    keywords?: string[];
    language: string | string[];
    model: string;
    noiseReductionType?: NoiseReductionType;
    prompt?: string;
    temperature?: number;
    turnDetection?: null | SessionTurnDetection;
    useRealtime: boolean;
    vad?: null | VAD;
}

Properties

apiKey?: string
baseURL?: string
client?: OpenAI
detectLanguage: boolean
keywords?: string[]

Literal terms expected in the audio. Supported by gpt-transcribe and gpt-live-transcribe.

language: string | string[]
model: string
noiseReductionType?: NoiseReductionType
prompt?: string
temperature?: number
turnDetection?: null | SessionTurnDetection
useRealtime: boolean
vad?: null | VAD

Pass null to opt out of the default client VAD and commit audio manually.