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.