npm.io
0.1.4 • Published 2 years ago

@types/node-microphone

Licence
MIT
Version
0.1.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Andreas May.