← Back to release summary

AudioContext.setSinkId()

Category
Multimedia
Type
Chromium catches up
Status
Enabled by default (Chrome 110)
Intent stage
Prepare to ship

Summary

AudioContext.setSinkId sets the ID of the audio device to use for output. This allows the AudioContext to route audio to a connected output device of user's choosing.

Motivation

Currently there is no way to select an output audio device in Web Audio API whereby AudioElement can route audio to a device of user's choosing. Audio output is piped to the default system device. AudioContext.setSinkId() will allow a user to route audio to a chosen connected audio output device.

Standards & signals

View on chromestatus.com