UNPKG

murmuraba

Version:

Real-time audio noise reduction with advanced chunked processing for web applications

25 lines 623 B
/** * Zero-Crossing Rate based Voice Activity Detection */ export declare class ZCRVAD { private previousSample; /** * Calculate zero-crossing rate of audio frame */ calculateZCR(frame: Float32Array): number; /** * Detect voice activity based on ZCR * Lower ZCR typically indicates voiced speech * Higher ZCR indicates unvoiced speech or noise */ detect(frame: Float32Array): number; /** * Get ZCR classification */ classify(zcr: number): string; /** * Reset the detector state */ reset(): void; } //# sourceMappingURL=zcr-vad.d.ts.map