import { TResolvedFeature } from '../../lib/defs.js'; export type TCachedAudio = { transcript: string; durationS: number; cachedPath: string; }; export type TRenderedAudioMap = { [hash: string]: TCachedAudio; }; export declare function preRenderFeatureProse(feature: TResolvedFeature): Promise; export declare function getMediafileDuration(filePath: string): Promise; /** * Render speech to WAV using kokoro-js with late require. * Checks if kokoro-js is installed in the current working directory; if not, installs it locally. */ export declare function renderSpeech(transcript: string): Promise; export declare function renderAudio(hash: string, transcript: string, cacheDir: string): Promise; export declare function copyPreRenderedAudio(dir: string, renderedAudio: TRenderedAudioMap, transcript: string): { path: string; durationS: number; }; /** * Play audio file using ffmpeg. * This replaces the TTS_PLAY option entirely. */ export declare function playAudioFile(audioPath: string): Promise; export declare function doExec(command: string, throwOnError?: boolean): string; export declare function doSpawn(command: string): void; //# sourceMappingURL=tts.d.ts.map