Audio output device selection (selectAudioOutput)
Lets a site pick which speaker or headphones play audio.
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
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 110 | 2023-02-07 | setSinkId from 49, selectAudioOutput 110 |
| Edge | Supported | 110 | 2023-02-09 | BCD lists no support; agent research says otherwise |
| Firefox | Supported | 116 | 2023-08-01 | selectAudioOutput 116 behind gesture |
| Safari | Partial | 18.5 | 2025-05-12 | setSinkId 18.5 |
| Safari on iPhone | Partial | 18.5 | 2025-05-12 | iOS 18.5 |
| Chrome on Android | Supported | 110 | 2023-02-07 | BCD lists no support; agent research says otherwise |
| Samsung Internet | Not supported | Not available | Not listed | None |
How a site asks for it
| API | navigator.mediaDevices.selectAudioOutput(); HTMLMediaElement.setSinkId(); enumerateDevices() audiooutput |
| Permission name | speaker-selection |
| Permissions policy | speaker-selection |
| Browser compat keys | api.MediaDevices.selectAudioOutputapi.HTMLMediaElement.setSinkId |
| How access is granted | picker |
| What the user sees | Browser chooser lists output devices; the site receives the chosen deviceId only. |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | Yes |
| How long it lasts | Per origin and device after a pick |
| How to take it back | Site settings; revoke by clearing site data |
| Inside an iframe | Needs allow="speaker-selection" in iframes |
Typical flow
- User clicks a button
- Call selectAudioOutput()
- Browser shows speaker list
- Site gets a MediaDeviceInfo and calls setSinkId()
Data you get
What comes back: MediaDeviceInfo of the chosen output
Shape: object
How often: one-shot
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
deviceId | string | opaque id | per-origin | 32 hex |
label | string | text | only after pick | device 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
| Type | Example | Apps |
|---|---|---|
| video | In a call, you pick your headset for the voice of others, and your laptop speaker for the ringing sound. | Google Meet, Microsoft Teams |
| games | A browser game sends the voice chat to your headset and the game music to your room speakers. | Discord web, Xbox Cloud Gaming |
| music | A web music tool lets a DJ send the cue track to headphones while the crowd hears the main mix. | None named |
| enterprise | A contact center web phone sends the customer voice to a headset, and keeps the ring on the desk speaker. | Twilio Flex, Five9 |
| education | A language class page sends a teacher voice to headphones, so a student in a shared room is not heard by others. | Zoom web |
| accessibility | A 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 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
- 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)
Related capabilities
Related
- enumerateDevices label gating. Can count your cameras, mics and speakers, but names stay hidden until you allow access
Sources
How well checked: Based on official documentation.