Skip to Content
Platform.Ontology

Microphone (audio capture)

Asks to turn on the microphone and receive live audio.

Asks you firstCamera, mic and screenCaptureWeb browsersWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeSupported532016-08-31Unprefixed from 53; secure context from 47
EdgeSupported122015-07-29None
FirefoxSupported362015-02-24Unprefixed from 36
SafariSupported112017-09-19macOS Safari 11, secure context only
Safari on iPhoneSupported112017-09-19iOS 11, all iOS browsers
Chrome on AndroidSupported532016-09-07None
Samsung InternetSupported6.02017-08-23None

How a site asks for it

APInavigator.mediaDevices.getUserMedia({audio: true|constraints}); Web Audio createMediaStreamSource()
Permission namemicrophone
Permissions policymicrophone
Browser compat keysapi.MediaDevices.getUserMedia
api.MediaStreamTrack
How access is grantedprompt
What the user seesChrome: 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 gestureNo
How long it lastsChrome and Edge: persistent per origin until reset; Safari and Firefox: per session unless remembered.
How to take it backPadlock icon, Site settings, OS microphone privacy settings; track.stop(); tab audio indicator.
Inside an iframeCross-origin iframes need allow="microphone"

Typical flow

  1. Call getUserMedia({audio: true})
  2. Browser prompts
  3. OS microphone opens
  4. 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)

FieldTypeUnitRangePrecision
sampleRateintegerHz8000 to 96000device dependent
channelCountintegerchannels1 to 8 (typical 1 or 2)1
echoCancellationbooleannonetrue or falsedefault true
noiseSuppressionbooleannonetrue or falsedefault true
autoGainControlbooleannonetrue or falsedefault true
latencyfloatseconds0 to 1about 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

TypeExampleApps
gamesIn 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
videoYou 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
musicA 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
messagingYou hold a mic button in a web chat, speak, and the site sends the voice note.WhatsApp Web, Messenger web
educationA language site asks you to say a phrase and scores your pronunciation as you speak.Duolingo, Google Translate web
accessibilityA 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
securityA 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

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

ScoreValueMeaning
Sensitivity5 of 5How revealing the data is
Utility5 of 5How useful it is to honest apps
Friction2 of 5How much the user has to do
Fingerprint bitsNot ratedRough 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

Sources

How well checked: Based on official documentation.

On this page