Methodology: How Readings Are Calculated

Every number on the meter is computed in your browser from raw microphone samples. This page describes each step so you can judge the readings and reproduce them.

1. Capturing the microphone

When you press Start, the page requests the microphone with the browser's getUserMedia API and asks for echoCancellation: false, noiseSuppression: false and autoGainControl: false. These features are meant for voice calls and distort level measurements.

Browsers treat this as a request and may ignore it. After the microphone opens, we read back the settings the browser reports for the audio track. If any of the three is still on, the meter shows a notice that processing could not be disabled, and readings should be treated with extra caution.

The signal is handled as a single (mono) channel and processed in an AudioWorklet, which runs on the browser's audio thread and not on the main page thread. No audio is recorded, stored or sent anywhere. See the privacy policy.

2. Frequency weighting (A, C, Z)

The A and C filters are derived from the analog definitions in the sound level meter standard IEC 61672-1. The standard defines both curves by four pole frequencies:

We convert these analog filters into digital ones with the bilinear transform, computed for the device's actual sample rate (44.1 kHz or 48 kHz, as reported by the browser). Each filter is then normalized to a gain of exactly 0 dB at 1 kHz, as the standard requires.

Z ("zero") applies no weighting. The samples pass through unchanged.

3. Time weighting (Fast and Slow)

The weighted signal is squared and smoothed with exponential averaging. The time constant τ is 125 ms for Fast and 1 s for Slow, the standard sound level meter values. For each sample, the running mean square y is updated from the squared sample x² as:

y ← y + (1 − e^(−1/(τ·fs))) · (x² − y)

where fs is the sample rate.

4. From signal to decibels

Every level is calculated the same way:

L = 10 · log10(mean square) + calibration offset

The first term is in dBFS, decibels relative to digital full scale, where a sample value of ±1.0 is the maximum. It is always zero or negative for a real signal. The calibration offset shifts it to an estimated sound pressure level in dB. Background on the units is in what is a decibel.

5. What each number means

ReadingHow it is calculated
Current levelThe time-weighted (Fast or Slow), frequency-weighted level right now.
LeqThe energy average: the mean of the squared weighted signal over the whole time since you pressed Start, converted to dB. It is not an average of the dB values.
Min / MaxThe lowest and highest values of the time-weighted level. The first second after Start (five seconds for Slow) is ignored so that the filters and averaging can settle.
PeakThe highest absolute sample value since Start, with no frequency or time weighting, converted to dB with the same offset.

6. Display and graph

The audio thread reports new values to the page about 10 times per second. The graph keeps the last 5 minutes of the time-weighted level. Leq, Min, Max and Peak always cover the full period since Start, not only the part visible on the graph.

7. Clipping

If sound is loud enough to drive the microphone or its converter to digital full scale, the waveform is cut off and the true level can no longer be measured. When samples hit full scale, a clipping badge appears. Read the displayed value as a lower bound: the real level is at least that high.

Limitations

What this means in practice is covered on the accuracy page.

Sources

Updated

Tools and guides