Skip to Content
Platform.Ontology

Audio output device selection (selectAudioOutput)

Lets a site pick which speaker or headphones play audio.

Asks you firstCamera, mic and screenCaptureWeb browsersWhile you use it

In one line

Can send sound to the speaker or headphones you pick

Lets a site pick which speaker or headphones play audio.

Lets a site list and choose speakers. The chooser shows device names only after a pick, because output names can reveal paired Bluetooth gear and hardware.

What it can and can't do

What the user does: You click Choose speaker in a call or music page and pick a device from the list

It can

  • Play audio through the output device you choose
  • Remember which output device you picked
  • Switch between speakers and headphones during a call

It cannot

  • Pick a device for you without the browser chooser
  • See devices you did not choose in the list
  • Hear sound or record anything, since this only controls where audio plays
  • Work in Samsung Internet; Safari and iPhone browsers support only part of it

How it differs between platforms: Chrome, Edge and Firefox support it fully. Safari and iPhone browsers support only part of it.

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported1102023-02-07setSinkId from 49, selectAudioOutput 110
EdgeSupported1102023-02-09BCD lists no support; agent research says otherwise
FirefoxSupported1162023-08-01selectAudioOutput 116 behind gesture
SafariPartial18.52025-05-12setSinkId 18.5
Safari on iPhonePartial18.52025-05-12iOS 18.5
Chrome on AndroidSupported1102023-02-07BCD lists no support; agent research says otherwise
Samsung InternetNot supportedNot availableNot listedNone

How a site asks for it

APInavigator.mediaDevices.selectAudioOutput(); HTMLMediaElement.setSinkId(); enumerateDevices() audiooutput
Permission namespeaker-selection
Permissions policyspeaker-selection
Browser compat keysapi.MediaDevices.selectAudioOutput
api.HTMLMediaElement.setSinkId
How access is grantedpicker
What the user seesBrowser chooser lists output devices; the site receives the chosen deviceId only.
Needs a secure context (HTTPS)Yes
Needs a user gestureYes
How long it lastsPer origin and device after a pick
How to take it backSite settings; revoke by clearing site data
Inside an iframeNeeds allow="speaker-selection" in iframes

Typical flow

  1. User clicks a button
  2. Call selectAudioOutput()
  3. Browser shows speaker list
  4. Site gets a MediaDeviceInfo and calls setSinkId()

Data you get

What comes back: MediaDeviceInfo of the chosen output
Shape: object
How often: one-shot

FieldTypeUnitRangePrecision
deviceIdstringopaque idper-origin32 hex
labelstringtextonly after pickdevice name

Technical limits

  • Output labels hidden until a pick
  • Needs a user gesture
  • No system volume control

The story

What it is

Lets a site choose which speaker or headphones plays its sound, after you pick one.

For you

A small picker lists your speakers and headphones, and you choose one. After that, the site plays sound to that device, for example your headset and not the laptop speakers.

For makers

In calls and games, sending voices to a headset and game sound to a speaker makes a nicer product, with no need to dig through system settings. The picker hides the device names until you choose, since names like a car stereo or earbuds can reveal your life.

Where you see it

TypeExampleApps
videoIn a call, you pick your headset for the voice of others, and your laptop speaker for the ringing sound.Google Meet, Microsoft Teams
gamesA browser game sends the voice chat to your headset and the game music to your room speakers.Discord web, Xbox Cloud Gaming
musicA web music tool lets a DJ send the cue track to headphones while the crowd hears the main mix.None named
enterpriseA contact center web phone sends the customer voice to a headset, and keeps the ring on the desk speaker.Twilio Flex, Five9
educationA language class page sends a teacher voice to headphones, so a student in a shared room is not heard by others.Zoom web
accessibilityA person using a hearing loop or special headset chooses it as the output for a call.Google Meet

Risks

  • Device names reveal Bluetooth gear
  • Sound can go to a device you forgot about

What the platform says

  • Mozilla: selectAudioOutput. Developer docs say a page can ask the person to choose an audio output device, and then play sound there.

Good uses and abuse

Legitimate uses

  • Call apps with headset choice

Known abuse

  • Learning a person's connected audio hardware

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 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

  • 2016-03, Chrome 49: setSinkId ships
  • 2023-02, Chrome 110: selectAudioOutput ships
  • 2025-09, Safari on iPhone 26: Speaker selection support on iOS and iPadOS (version unconfirmed)

Sources

How well checked: Based on official documentation.

On this page