UNPKG

avr-vad

Version:

A Node.js library for Voice Activity Detection using Silero VAD

16 lines 517 B
interface ResamplerOptions { nativeSampleRate: number; targetSampleRate: number; targetFrameSize: number; } export declare class Resampler { options: ResamplerOptions; inputBuffer: Array<number>; constructor(options: ResamplerOptions); process: (audioFrame: Float32Array) => Float32Array[]; stream: (audioInput: Float32Array) => AsyncGenerator<any, void, unknown>; private hasEnoughDataForFrame; private generateOutputFrame; } export {}; //# sourceMappingURL=resampler.d.ts.map