Ir para o conteúdo
HZBench
Todos os artigos

Como fazer

How to test your microphone level and background noise in a browser

A good microphone setup peaks well below the maximum and has a quiet floor between words. Browser processing can hide or create problems, so test with it in mind.

Por Redação do HZBenchPublicado:

Este artigo está disponível apenas em inglês.

A microphone test in a browser listens through the same path a call app uses: getUserMedia() asks for permission, then the page analyses the incoming sound [1]. The Web Audio AnalyserNode gives the page the waveform and frequency data it needs to draw levels without sending a recording to a server [2].

The three numbers that matter

ReadingWhat to look for
Loudest momentYour voice at normal speaking volume. HZBench marks −18 to −6 dB as a good range (0 dB is the digital maximum).
Background noiseThe level when you are silent. The lower and steadier, the better.
DistortionPeaks that hit the maximum. They sound harsh and cannot be fixed afterwards.

Browser processing changes the sound

Browsers can apply three kinds of processing to a microphone, each requested through a constraint: echo cancellation [3], noise suppression [4] and automatic gain control [5]. They help in calls, but they also change what a test measures. Automatic gain raises a quiet microphone, so a weak mic can look fine; noise suppression can make background hiss look lower than it really is. When a call sounds wrong, compare the test with your call app's own audio settings.

Step by step

  1. Close other apps that use the microphone, then open the test and allow access.
  2. Choose the microphone if you have several; headsets and webcams often add their own.
  3. Stay silent for a few seconds to read the background noise.
  4. Speak at your normal call volume, at your normal distance, and read the loudest moment.
  5. Play back the 5-second recording to hear what others hear.

Fixing common problems

  • Too quiet: move closer before raising the input gain in system settings. Distance changes the level much more than most settings.
  • Distorted: lower the input gain or move back; peaks above the good range are the usual cause.
  • Noisy: turn off fans or move them away, use a directional or headset microphone, and check that the right input is selected.
  • Muffled: a mic covered by clothing or pointed away from your mouth loses high frequencies; reposition it before changing settings.

Headset, webcam or built-in microphone?

Run the test once for each microphone you have and compare the loudest moment and the background noise. A headset microphone close to your mouth usually gives a higher voice level for the same noise than a laptop or webcam microphone across the desk. If you use a wireless headset, test it the way you use it in calls: the test measures whatever the system delivers from that microphone at that moment.

The recording and levels never leave your device in HZBench. The test shows what the browser receives, not the quality of the microphone capsule itself.

Fontes

  1. [1] MediaDevices: getUserMedia() method, MDN Web Docs (acessado )
  2. [2] AnalyserNode, MDN Web Docs (acessado )
  3. [3] MediaTrackConstraints: echoCancellation property, MDN Web Docs (acessado )
  4. [4] MediaTrackConstraints: noiseSuppression property, MDN Web Docs (acessado )
  5. [5] MediaTrackConstraints: autoGainControl property, MDN Web Docs (acessado )

Correções

Como escrevemos e corrigimos os artigosInformar um erro