import { STT } from '../../agents/providers.js'; import type { AzureOpenAISTTModel } from './models.js'; /** Configuration options for the {@link AzureOpenAISTT} provider. */ export type AzureOpenAISTTOptions = { /** Azure OpenAI API key. Falls back to the `AZURE_API_KEY` then `AZURE_OPENAI_API_KEY` env vars, then `null`. */ apiKey?: string | null; /** Azure OpenAI resource endpoint. Falls back to the `AZURE_OPENAI_ENDPOINT` env var, then `null`. */ azureEndpoint?: string | null; /** Azure deployment name. Falls back to the `AZURE_OPENAI_STT_DEPLOYMENT` env var, then `null`. */ deployment?: string | null; /** Azure OpenAI REST API version. Default: `'2025-03-01-preview'`. */ apiVersion?: string; /** Transcription model name. Default: `''`. */ model?: AzureOpenAISTTModel | string; /** Transcription language code. Default: `'en'`. */ language?: string; /** Whether to use streaming transcription. Default: `false`. */ stream?: boolean; /** Input audio sample rate in Hz. Default: `48000`. */ inputSampleRate?: number; /** Output audio sample rate in Hz. Default: `24000`. */ outputSampleRate?: number; /** Optional prompt to bias transcription. Default: `null`. */ prompt?: string | null; /** Sampling temperature. Default: `null`. */ temperature?: number | null; /** Response format, e.g. `'json'`, `'text'`. Default: `'json'`. */ responseFormat?: string; /** Turn-detection mode, e.g. `'server_vad'`. Default: `'server_vad'`. */ turnDetection?: string; }; declare class AzureOpenAISTTImpl extends STT { static readonly displayName = "AzureOpenAISTT"; _providerName: string; apiKey: string | null; endpoint: string | null; deployment: string | null; apiVersion: string; model: string; language: string; stream: boolean; inputSampleRate: number; outputSampleRate: number; prompt: string | null; temperature: number | null; responseFormat: string; turnDetection: string; constructor(opts?: AzureOpenAISTTOptions); getRuntimeConfig(): Record; } export type AzureOpenAISTT = AzureOpenAISTTImpl; /** * Azure OpenAI speech-to-text provider. * * Creates a configured Azure OpenAI transcription provider for use in a voice agent. */ export declare const AzureOpenAISTT: (opts?: AzureOpenAISTTOptions) => AzureOpenAISTT; export {};