0.0.5 • Published 6 months ago

@types/voice-activity-detection v0.0.5

Weekly downloads
337
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for voice-activity-detection 0.0
// Project: https://github.com/Jam3/voice-activity-detection
// Definitions by: JohnDoeAntler <https://github.com/JohnDoeAntler>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Fri, 03 Sep 2021 06:01:20 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by JohnDoeAntler.

0.0.3

8 months ago

0.0.5

6 months ago

0.0.4

7 months ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

4 years ago