0.1.4 • Published 6 months ago
@types/node-microphone v0.1.4
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
// Type definitions for node-microphone 0.1
// Project: https://github.com/MexXxo/node-microphone#readme
// Definitions by: Andreas May <https://github.com/Maanex>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Thu, 08 Jul 2021 18:51:22 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Andreas May.