Microphone (audio capture)
Asks to turn on the microphone and receive live audio.
In one line
Can hear and record live audio from your microphone while the tab is open
Asks to turn on the microphone and receive live audio.
Gives the site live sound from the room: voice, background talk, ambient noise. Used for calls and dictation; also usable for voice biometrics or covert listening if the tab stays open.
What it can and can't do
What the user does: You click Unmute, Record, or Join call, then choose Allow in the browser pop up
It can
- Capture live audio from your microphone
- Send that audio to other people on a call or to the site's servers
- Record voice clips or messages
- List your microphones and switch between them once you allow access
It cannot
- Turn the microphone on the first time without your Allow tap
- Keep listening after you close the tab; the tab shows a recording indicator while it runs
- Use the microphone if it is blocked in your device settings
- Hear other apps or system sound, only what the microphone picks up
How it differs between platforms: Chrome offers Allow this time, Firefox lets you pick a microphone in the pop up, and Safari asks per site.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 53 | 2016-08-31 | Unprefixed from 53; secure context from 47 |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 36 | 2015-02-24 | Unprefixed from 36 |
| Safari | Supported | 11 | 2017-09-19 | macOS Safari 11, secure context only |
| Safari on iPhone | Supported | 11 | 2017-09-19 | iOS 11, all iOS browsers |
| Chrome on Android | Supported | 53 | 2016-09-07 | None |
| Samsung Internet | Supported | 6.0 | 2017-08-23 | None |
How a site asks for it
| API | navigator.mediaDevices.getUserMedia({audio: true|constraints}); Web Audio createMediaStreamSource() |
| Permission name | microphone |
| Permissions policy | microphone |
| Browser compat keys | api.MediaDevices.getUserMediaapi.MediaStreamTrack |
| How access is granted | prompt |
| What the user sees | Chrome: bubble with Allow while visiting, Allow this time, Don't allow. Firefox: device chooser plus Remember. Safari: Allow or Don't Allow. Tab shows a recording icon (red dot) while active. |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | No |
| How long it lasts | Chrome and Edge: persistent per origin until reset; Safari and Firefox: per session unless remembered. |
| How to take it back | Padlock icon, Site settings, OS microphone privacy settings; track.stop(); tab audio indicator. |
| Inside an iframe | Cross-origin iframes need allow="microphone" |
Typical flow
- Call getUserMedia({audio: true})
- Browser prompts
- OS microphone opens
- MediaStream with an audio track; echoCancellation, noiseSuppression, autoGainControl default on
Data you get
What comes back: Live audio track
Shape: stream
How often: continuous (sample rate usually 44100 or 48000 Hz)
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
sampleRate | integer | Hz | 8000 to 96000 | device dependent |
channelCount | integer | channels | 1 to 8 (typical 1 or 2) | 1 |
echoCancellation | boolean | none | true or false | default true |
noiseSuppression | boolean | none | true or false | default true |
autoGainControl | boolean | none | true or false | default true |
latency | float | seconds | 0 to 1 | about 0.01 |
Technical limits
- Needs secure context
- OS and browser show an active indicator
- Background tabs on mobile stop capture
- Cannot hear system audio (see display-capture systemAudio)
The story
What it is
Lets a website listen through your microphone, live.
For you
A box asks to use your microphone, and you pick Allow or Block. While it is on, the tab shows a mic icon. The site hears voices and room noise until you close the tab or turn it off.
For makers
The microphone is the heart of web calls, voice chat in games and voice search. A maker can add voice to any web product without an app. It also opens the door to features such as live captions, voice commands and sound checks.
Where you see it
| Type | Example | Apps |
|---|---|---|
| games | In a browser or cloud game, you press a button to talk to your squad over voice chat, and the game sends your voice to the team. | Xbox Cloud Gaming party chat, GeForce NOW, Discord web |
| video | You join a Zoom or Google Meet call in a browser tab, allow the mic, and others hear you right away. | Google Meet, Zoom web, Microsoft Teams |
| music | A web tuner or music app listens to your guitar or voice and shows if you are in tune or singing the right note. | Chrome Music Lab, Yousician web |
| messaging | You hold a mic button in a web chat, speak, and the site sends the voice note. | WhatsApp Web, Messenger web |
| education | A language site asks you to say a phrase and scores your pronunciation as you speak. | Duolingo, Google Translate web |
| accessibility | A person who cannot type well dictates a long email by voice and sees live words appear in the text box. | Gmail dictation, Google Docs voice typing |
| security | A phone call center site checks your voice print on a login, using a live clip of your voice as a second factor. | None named |
Risks
- Covert listening from a forgotten tab
- Voice used as a biometric
What the platform says
- Mozilla: getUserMedia. Developer docs describe how a page asks permission, then streams live microphone audio for calls and dictation.
- Google Chrome: One-time permissions. Chrome describes Allow this time, which gives microphone access for one visit only.
Good uses and abuse
Legitimate uses
- Voice and video calls
- Dictation and voice search
- Music tuners
- Podcast recording
Known abuse
- Covert listening
- Voice biometrics
- Ultrasonic cross-device tracking beacons (research)
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 5 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2017-09, Safari on iPhone 11: iOS 11 adds getUserMedia audio
- 2018-01, Chrome 60: Restricted to secure contexts
- 2019-03, Chrome 74: Tab recording indicator becomes standard in tab strip
- 2023-08, Chrome 116: Allow this time added
Related capabilities
Related
- Camera (video capture). Can see and record live video from your camera while the tab is open
- Web Speech recognition. Can turn your spoken words into text while you speak and the tab is open
- MediaRecorder. Can save a camera, mic or screen stream to a file, once you allowed it
- Audio output device selection (selectAudioOutput). Can send sound to the speaker or headphones you pick
Sources
How well checked: Based on official documentation.