react-edge-tts
Version:
Generate text-to-speech narration for React content using Microsoft Edge TTS
18 lines • 558 B
TypeScript
import type { NarrationMetadata } from './types';
interface GeneratorOptions {
inputDir: string;
outputDir: string;
}
declare class NarrationGenerator {
private tts;
private options;
constructor(options?: Partial<GeneratorOptions>);
generateAudio(narrationContent: {
metadata: NarrationMetadata;
content: string;
}): Promise<string>;
processNarrationFile(filePath: string): Promise<string>;
processDirectory(): Promise<string[]>;
}
export default NarrationGenerator;
//# sourceMappingURL=generator.d.ts.map