import { STT } from '../../agents/providers.js'; /** * Configuration options for the Gladia speech-to-text (STT) provider. * * All fields are optional; unspecified values fall back to the defaults * noted on each field. */ export type GladiaSTTOptions = { /** * Gladia API key used to authenticate requests. * Defaults to the `GLADIA_API_KEY` environment variable, or `null` if unset. */ apiKey?: string | null; /** * Gladia transcription model to use. * @defaultValue `'solaria-1'` */ model?: string; /** * Preferred transcription language(s) as language codes/names. Only the * first entry is used to select the active language. When empty or omitted, * the language defaults to `'english'`. */ languages?: string[] | null; /** * Enable automatic detection and switching between languages within a single * stream (multilingual audio). */ codeSwitching?: boolean; /** * Sample rate, in Hz, of the audio fed into the provider. */ inputSampleRate?: number; /** * Sample rate, in Hz, used for the transcription stream. This value is also * used as the effective sample rate. * @defaultValue `16000` */ outputSampleRate?: number; /** * Audio encoding format of the input stream (e.g. PCM encodings). */ encoding?: string; /** * Bit depth of the input audio samples (e.g. `16`). */ bitDepth?: number; /** * Number of audio channels in the input stream (e.g. `1` for mono). */ channels?: number; /** * Whether to emit interim/partial transcripts as audio is still being * processed, in addition to final transcripts. */ receivePartialTranscripts?: boolean; }; declare class GladiaSTTImpl extends STT { static readonly displayName = "GladiaSTT"; _providerName: string; apiKey: string | null; model: string; language: string; sampleRate: number; constructor(opts?: GladiaSTTOptions); getRuntimeConfig(): Record; } /** Instance type of a configured Gladia STT provider. */ export type GladiaSTT = GladiaSTTImpl; /** * Gladia speech-to-text (STT) provider. * * @param opts - Provider configuration; see {@link GladiaSTTOptions}. * @returns A configured Gladia STT provider instance. */ export declare const GladiaSTT: (opts?: GladiaSTTOptions) => GladiaSTT; export {};