@types/voice-activity-detection
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Installation

npm install --save @types/voice-activity-detection

Summary

This package contains type definitions for voice-activity-detection (https://github.com/Jam3/voice-activity-detection).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/voice-activity-detection.

index.d.ts

declare function vad(
    audioContext: AudioContext,
    stream: MediaStream,
    options?: vad.VoiceActivityDetectionOptions,
): { connect: () => void; disconnect: () => void; destroy: () => void };

declare namespace vad {
    interface VoiceActivityDetectionOptions {
        fftSize?: number | undefined;
        bufferLen?: number | undefined;
        smoothingTimeConstant?: number | undefined;
        minCaptureFreq?: number | undefined;
        maxCaptureFreq?: number | undefined;
        noiseCaptureDuration?: number | undefined;
        minNoiseLevel?: number | undefined;
        maxNoiseLevel?: number | undefined;
        avgNoiseMultiplier?: number | undefined;
        onVoiceStart?: (() => void) | undefined;
        onVoiceStop?: (() => void) | undefined;
        onUpdate?: ((val: number) => void) | undefined;
    }
}

export = vad;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by JohnDoeAntler.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/voice-activity-detection

Weekly Downloads

144

Version

0.0.5

License

MIT

Unpacked Size

4.39 kB

Total Files

5

Last publish

Collaborators

  • types