@mymusictaste/async-audiorecorder
Version:
node-audiorecorder with async/await & typescript support
11 lines (10 loc) • 404 B
TypeScript
/// <reference types="node" />
export type AudioDevice = {
device: string;
label: string;
};
/**
* Executes the appropriate command to list available recording devices, automatically detecting the platform.
* You can also pass the platform as an argument to override the automatic detection.
*/
export declare function listRecordingDevices(platform?: NodeJS.Platform): Promise<AudioDevice[]>;