audio-to-text-node
Version:
Backend audio file to text transcription using Web Speech API with Puppeteer
16 lines • 595 B
TypeScript
/**
* Splits the audio file into chunks.
* @param filePath Path to the audio file
* @param chunkLength Length of each chunk in seconds
* @returns An array of objects containing the path and start time of each chunk
*/
export declare function splitAudioToChunks(filePath: string, chunkLength: number): Array<{
path: string;
start: number;
}>;
/**
* Removes the audio directory and all its contents for a given audio file.
* @param filePath Path to the original audio file
*/
export declare function removeAudioDirectory(filePath: string): void;
//# sourceMappingURL=audio.d.ts.map