UNPKG

murmuraba

Version:

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

33 lines 785 B
/** * Energy-based Voice Activity Detection */ export declare class EnergyVAD { private noiseFloor; private adaptiveThreshold; private smoothingFactor; /** * Calculate RMS energy of audio frame */ calculateEnergy(frame: Float32Array): number; /** * Update noise floor estimate */ updateNoiseFloor(energy: number, isSpeech: boolean): void; /** * Detect voice activity based on energy */ detect(frame: Float32Array): number; /** * Calculate energy metrics for a frame */ getMetrics(frame: Float32Array): { energy: number; noiseFloor: number; threshold: number; }; /** * Reset the detector state */ reset(): void; } //# sourceMappingURL=energy-vad.d.ts.map