Works on this device
Browser Audio Test
This page asks your browser about sound and shows each answer with the name of the place it came from. It can also play one short, quiet test tone. Nothing sounds until you choose a button.
Browser audio test
Nothing sounds until you choose a button. The sound check is silent. The test tone is quiet, lasts 1 second and plays only when you choose it.
Before you press anything
| Item | What the browser says | Where it comes from | What it means |
|---|
Sound check
Ready. No sound system has been started.
No result yet. Choose Start the sound check.
| Item | What the browser says | Where it comes from | What it means |
|---|
Test tone
30%
Not playing
The tone is 440 Hz for 1 second, the same on both sides. Turn the volume of your device down first.
Sound outputs
Listing the sound outputs needs no permission and makes no sound. This page never asks for your microphone.
Not listed yet.
| Output | Name | Code |
|---|
Audio formats
For each type the page asked your browser "can you play this type?". Probably and Maybe are the words of the browser. Maybe means the browser cannot be sure before it sees a file. No file is loaded or played.
The answers appear when the page has loaded.
| Format | Type asked | Answer of the browser |
|---|
How to use the browser audio test
- Read the table Before you press anything. It shows what the browser tells a page with no press at all.
- Choose Start the sound check. The page makes the sound system of the browser, asks it to go on, reads its values and shuts it again. This step is silent.
- Read the result line and the table. Each row says what the browser reports and what it means.
- Choose Play a short test tone and say if you heard it. The tone is quiet and lasts 1 second.
- Choose List the sound outputs to see what the browser lists. Look at Audio formats for the types your browser says it can play.
What the sound check reads
| Value | Interface of the browser | What it tells you |
|---|---|---|
| State | AudioContext.state |
running: sound can leave the browser. suspended: the browser holds sound back. |
| Audio clock | AudioContext.currentTime |
The page reads the clock two times, 0.4 seconds apart. A clock that moves shows that the sound system really works. |
| Sample rate | AudioContext.sampleRate |
The number of values a second that describe the sound, for example 44,100 or 48,000. The highest tone is a little under half of it. |
| Delay inside the browser | AudioContext.baseLatency |
The time the browser needs to hand sound to the system. |
| Delay to the speaker | AudioContext.outputLatency |
The estimate of the browser for the time until you hear the sound. |
| Channels | AudioDestinationNode.maxChannelCount |
2 is stereo. More than 2 means the device offers surround channels to the browser. |
| Sound output in use | AudioContext.sinkId |
The default output of the system, or one that was chosen for the page. |
| Rule for sound that starts by itself | navigator.getAutoplayPolicy() |
If a page may start sound with no press. Only some browsers answer this. |
Why sound may need a press
Most browsers do not let a page make sound by itself. They hold the sound system back until you press a button, tap the page or use a key. This stops pages from making noise when you open them.
The state suspended shows this rule at work. After a press, the page asks the browser to go on, and the state changes to running. If it stays suspended, look at the sound setting for the site in your browser.
A browser that says running is not a promise that you hear something. The volume of your device, a muted tab, or a sound output that is switched off are outside the browser. A web page cannot read them. That is why the test tone asks you what you heard.
Sound outputs and what you must allow
- List the sound outputs asks the browser for its list of devices. This needs no permission and makes no sound.
- With no permission, a browser hides the names of the devices and often lists only one output, or none. This protects your privacy: a list of device names can be used to tell you apart from other visitors.
- Some browsers let a page ask for one sound output. Then the button Choose a sound output appears. Your browser shows its own list, and the page gets the name of the one you choose and nothing else.
- In other browsers the names appear only after you allow the microphone. This page never asks for the microphone, so the names stay hidden there.
- The device names stay on this page. The page does not send them anywhere.
Audio formats
The page asks the browser "can you play this type?" for 16 fixed types, with the interface HTMLMediaElement.canPlayType(). No file is loaded and nothing is played.
The browser answers with one of three texts. Probably and Maybe are the words of the browser, not of this page. Maybe means the browser cannot be sure before it sees a real file. An empty answer means no, and the page shows it as No.
An answer of Probably is still not a promise for every file. A file can use a part of a format that the browser does not have.
Worked example
The page reads the audio clock, waits, and reads it again. If the page clock moved 0.40 seconds and the audio clock moved 0.40 seconds, the sound system runs. If the audio clock moved 0.00 seconds, no sound can leave the browser.
A browser reports a sample rate of 48,000 samples a second. The highest tone it can describe is a little under 48,000 ÷ 2 = 24,000 Hz.
A browser reports a delay of 0.0213 seconds to the speaker. The page shows it as 21.3 ms.
The volume control of the test tone at 30% multiplies the sound by 0.3 × 0.3 = 0.09. The loudest point of the tone is then 0.5 × 0.09 = 0.045 of full scale, which is 26.9 dB below full scale.
Limits you should know
- The page shows what the browser reports. When a browser does not offer an interface, the page says This browser does not tell. and does not guess.
- The page cannot hear. It cannot know if the test tone came out of a speaker.
- The delay values are estimates by the browser. The page does not measure the delay. A true measurement needs a microphone that hears the speaker.
- A page cannot read the volume of your device, the mute of a tab or the sound mixer of your system.
- The page cannot change which output your system uses. Choose the output in the sound settings of your system.
- To test left and right, bass, treble and surround speakers, use the Speaker Test. To test a microphone, use the Microphone Test.