import { STT } from '../../agents/providers.js'; import type { OpenAISTTModel } from './models.js'; /** Options for {@link OpenAISTT}. */ export type OpenAISTTOptions = { /** OpenAI API key. Defaults to the `OPENAI_API_KEY` environment variable. */ apiKey?: string | null; /** Transcription model id. Default `'gpt-4o-transcribe'`. */ model?: OpenAISTTModel | string; /** Spoken language as a BCP-47/ISO code. Default `'en'`. */ language?: string; /** Stream partial transcripts as audio arrives. Default `true`. */ stream?: boolean; /** Sample rate (Hz) of the audio sent in. Default `48000`. */ inputSampleRate?: number; /** Sample rate in Hz that input audio is resampled to. Default `24000`. */ outputSampleRate?: number; /** Optional prompt to bias transcription. Default `null`. */ prompt?: string | null; /** Turn-detection mode. Default `'server_vad'`. */ turnDetection?: string; /** VAD speech-probability threshold. Default `null` (provider default). */ vadThreshold?: number | null; /** Audio padding (ms) prepended before detected speech. Default `null`. */ vadPrefixPaddingMs?: number | null; /** Trailing silence (ms) that ends a turn. Default `null`. */ vadSilenceDurationMs?: number | null; /** Noise-reduction profile, e.g. `'near_field'`/`'far_field'`. Default `'near_field'`. */ noiseReduction?: string | null; /** Transcript response format. Default `'json'`. */ responseFormat?: string; /** Override the API base URL. Default `null`. */ baseUrl?: string | null; }; declare class OpenAISTTImpl extends STT { static readonly displayName = "OpenAISTT"; _providerName: string; apiKey: string | null; model: string; language: string; stream: boolean; inputSampleRate: number; outputSampleRate: number; prompt: string | null; turnDetection: string; vadThreshold: number | null; vadPrefixPaddingMs: number | null; vadSilenceDurationMs: number | null; noiseReduction: string | null; responseFormat: string; baseUrl: string | null; constructor(opts?: OpenAISTTOptions); getRuntimeConfig(): Record; } export type OpenAISTT = OpenAISTTImpl; /** OpenAI speech-to-text (STT) transcriber. */ export declare const OpenAISTT: (opts?: OpenAISTTOptions) => OpenAISTT; export {};