UNPKG

@aituber-onair/voice

Version:

Voice synthesis library for AITuber OnAir

21 lines (20 loc) 597 B
/** * WAV file header parser utility */ export interface WavFormat { channels: number; sampleRate: number; bitsPerSample: number; audioFormat: number; } /** * Parse WAV file header to extract audio format information * @param buffer ArrayBuffer containing WAV file data * @returns WavFormat object with audio specifications */ export declare function parseWavHeader(buffer: ArrayBuffer): WavFormat; /** * Get default audio format for speaker library * Falls back to common format if parsing fails */ export declare function getAudioFormat(buffer: ArrayBuffer): WavFormat;