UNPKG

audio-to-text-node

Version:

Backend audio file to text transcription using Web Speech API with Puppeteer

18 lines 763 B
/** * Launches the speech recognition process in the browser. * @param files Array of audio file chunks with their paths and start times * @param language Language code for the speech recognition * @param executablePath Optional path to the browser executable * @returns A Promise that resolves to the final transcript text */ export declare function launchRecognizer(files: Array<{ path: string; start: number; }>, language: string, executablePath?: string): Promise<string>; /** * Closes the Puppeteer browser instance if it exists. * Sets the browserInstance to null after closing. * @returns A Promise that resolves when the browser is closed. */ export declare function closeBrowser(): Promise<void>; //# sourceMappingURL=puppeteer.d.ts.map