import { type EncodedSpeechFormat } from './lib/audio-transcode.js'; export type SpeechResponseFormat = 'wav' | 'pcm'; export interface SpeechFormatNative { kind: 'native'; format: SpeechResponseFormat; contentType: string; } export interface SpeechFormatTranscoded { kind: 'transcoded'; format: EncodedSpeechFormat; contentType: string; } export interface SpeechFormatInvalid { kind: 'invalid'; format: string; message: string; } export type MappedSpeechFormat = SpeechFormatNative | SpeechFormatTranscoded | SpeechFormatInvalid; export declare const DEFAULT_SPEECH_FORMAT: SpeechResponseFormat; export declare function mapResponseFormat(input: unknown): MappedSpeechFormat; export declare function pcmContentType(sampleRate: number): string; export declare const DEFAULT_SAMPLE_RATE = 24000; export declare function resolveSampleRate(config: Record | undefined): number; export declare function int16SamplesToBuffer(samples: number[]): Buffer; export declare function buildWavHeader(dataLength: number, sampleRate: number): Buffer; export declare function buildWavBuffer(samples: number[], sampleRate: number): Buffer; export declare function speechAliasKey(model: string, voice: string): string; //# sourceMappingURL=audio.d.ts.map