import { type APIConnectOptions, type AudioBuffer, stt } from '@livekit/agents'; import type { STTLanguages, STTModels } from './models.js'; export interface STTOptions { apiKey?: string; language?: STTLanguages | string; detectLanguage: boolean; interimResults: boolean; punctuate: boolean; model: STTModels; smartFormat: boolean; noDelay: boolean; endpointing: number; fillerWords: boolean; sampleRate: number; numChannels: number; keywords: [string, number][]; keyterm: string[]; profanityFilter: boolean; /** * Redact sensitive information from the transcription. Accepts a single value or list of * values. Supported values: "pci", "numbers", "ssn", "true" (redact all). * See https://developers.deepgram.com/docs/redaction for details. */ redact: string | string[]; dictation: boolean; diarize: boolean; numerals: boolean; mipOptOut: boolean; baseUrl: string; } export declare class STT extends stt.STT { #private; label: string; private abortController; get model(): string; get provider(): string; constructor(opts?: Partial); _recognize(_: AudioBuffer): Promise; updateOptions(opts: Partial): void; stream(options?: { connOptions?: APIConnectOptions; }): SpeechStream; close(): Promise; } export declare class SpeechStream extends stt.SpeechStream { #private; label: string; constructor(stt: STT, opts: STTOptions, connOptions?: APIConnectOptions); protected run(): Promise; updateOptions(opts: Partial): void; private onAudioDurationReport; } //# sourceMappingURL=stt.d.ts.map