UNPKG

audio-to-text-node

Version:

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

21 lines 900 B
/** * Setup audio routing for virtual microphone and speaker. * This function creates a null sink for the speaker and a remap source for the microphone. * It also sets the default source to the virtual microphone. * @param speakerDevice The name of the virtual speaker device. * @param microphoneDevice The name of the virtual microphone device. * @returns void */ export declare function setupAudioRouting(speakerDevice?: string, microphoneDevice?: string): void; /** * Play audio using the configured virtual speaker device. * @param filePath The path to the audio file to play. * @returns Promise<void> */ export declare function playAudio(filePath: string): Promise<void>; /** * Restore audio routing by restoring the original default source and unloading virtual modules. * @returns void */ export declare function restoreAudioRouting(): void; //# sourceMappingURL=routing.d.ts.map