0.0.5 • Published 6 months ago
@types/voice-activity-detection v0.0.5
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.