UNPKG

tiny-server-essentials

Version:

A good utility toolkit to unify Express v5 and Socket.IO v4 into a seamless development experience with modular helpers, server wrappers, and WebSocket tools.

23 lines 736 B
/** * VolumeProcessor is an AudioWorkletProcessor that calculates the root mean square (RMS) * volume level from incoming audio samples in real-time. * * It listens to the input audio stream and computes the volume on each processing frame, * then posts the calculated volume value back to the main thread via the processor port. * * This processor can be used for volume visualization, metering, or detecting silence/activity in an audio stream. * * Registered under the name: 'volume-processor'. * * @class * @beta */ declare class VolumeProcessor { _volume: number; /** * @param {*} inputs * @returns {boolean} */ process(inputs: any): boolean; } //# sourceMappingURL=volume-processor.d.ts.map