Installation
npm install --save @types/node-microphone
Summary
This package contains type definitions for node-microphone (https://github.com/MexXxo/node-microphone#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-microphone.
index.d.ts
/// <reference types="node" />
interface MicrophoneOptions {
endian?: "big" | "little" | undefined;
bitwidth?: 8 | 16 | 24 | undefined;
encoding?: "signed-integer" | "unsigned-integer" | undefined;
rate?: 8000 | 16000 | 44100 | undefined;
channels?: 1 | 2 | undefined;
device?: "hw:0,0" | "plughw:1,0" | "default" | undefined;
additionalParameters?: any;
}
declare class Microphone {
constructor(options?: MicrophoneOptions);
startRecording(): NodeJS.WriteStream;
stopRecording(): void;
}
export = Microphone;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by Andreas May.