subtitles-generator
Version:
Generate subtitles easily with ffmpeg and whisper
14 lines • 756 B
TypeScript
import { WhisperCPPExecuteLanguage } from './whisperCPP/whisperCPP.js';
import { WhisperCPPModelType } from './whisperCPP/whisperCPPModelType.js';
export type SubtitleGeneratorModelType = WhisperCPPModelType;
export declare const SUBTITLE_GENERATOR_MODEL_TYPES: WhisperCPPModelType[];
export type SubtitleGeneratorLanguage = WhisperCPPExecuteLanguage;
export type SubtitlesGeneratorOptions = {
outputFilePath?: string;
modelType?: SubtitleGeneratorModelType;
shouldTryToDownloadModel?: boolean;
language?: SubtitleGeneratorLanguage;
translateToEnglish?: boolean;
};
export declare const subtitlesGenerator: (inputFilePath: string, options?: SubtitlesGeneratorOptions) => Promise<string>;
//# sourceMappingURL=subtitlesGenerator.d.ts.map