/** * TTS Phoneme Processing Utilities * * Stateless utility functions for phoneme data merging and timing adjustment. * These functions handle the synchronization of phoneme timing data across * multiple audio chunks. */ export interface PhonemeData { symbols: string[]; durations_seconds: number[]; start_times_seconds: number[]; } /** * Merge multiple phoneme data chunks with automatic time offset adjustment. * * Handles the merging of phoneme data from multiple TTS chunks, ensuring * continuous timing by adjusting start times and maintaining duration * offsets. The first chunk's start time is normalized to 0, and * subsequent chunks are offset accordingly. * * @param phonemeChunks - Array of phoneme dictionaries * @returns Merged phoneme dictionary with adjusted timing */ export declare function mergePhonemeData(phonemeChunks: Partial[]): PhonemeData; /** * Apply time offset to phoneme start times. * * Creates a new phoneme dictionary with start times shifted by the * specified offset. Useful for sequential streaming scenarios. * * @param phonemeData - Phoneme dictionary with timing data * @param offset - Time offset in seconds to add to all start times * @returns New phoneme dictionary with adjusted start times */ export declare function adjustPhonemeTiming(phonemeData: Partial, offset: number): PhonemeData; /** * Create an empty phoneme dictionary with standard structure. * * @returns Empty phoneme dictionary */ export declare function createEmptyPhonemeDict(): PhonemeData; //# sourceMappingURL=phoneme_utils.d.ts.map