subtitles-generator
Version:
Generate subtitles easily with ffmpeg and whisper
17 lines • 897 B
TypeScript
import { WhisperCPPModelType } from './whisperCPPModelType.js';
export type WhisperCPPExecuteOutputFormat = 'txt' | 'vtt' | 'srt' | 'lrc' | 'csv' | 'json';
export type WhisperCPPExecuteLanguage = 'auto' | string;
export interface WhisperCPPExecuteOptions {
outputFilePath: string;
outputFormat: WhisperCPPExecuteOutputFormat;
modelType?: WhisperCPPModelType;
shouldTryToDownloadModel?: boolean;
language?: WhisperCPPExecuteLanguage;
translateToEnglish?: boolean;
}
export declare const whisperCPP: {
isModelDownloaded: (modelType: WhisperCPPModelType) => Promise<boolean>;
downloadModel: (modelType: WhisperCPPModelType) => Promise<void>;
execute: (inputFilePath: string, { outputFilePath, outputFormat, modelType, shouldTryToDownloadModel, language, translateToEnglish, }: WhisperCPPExecuteOptions) => Promise<void>;
};
//# sourceMappingURL=whisperCPP.d.ts.map