@types/node-microphone
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/node-microphone

Weekly Downloads

192

Version

0.1.4

License

MIT

Unpacked Size

3.77 kB

Total Files

5

Last publish

Collaborators

  • types