web api interface
AudioSinkInfo
Limited availability
The AudioSinkInfo interface of the Web Audio API represents information describing an AudioContext’s sink ID, retrieved via sinkId.
Instance properties
typeRead only Experimental- : Returns the type of the audio output device.
Examples
If a new AudioContext is created with a sinkId value of { type: 'none' }, calling sinkId later in the code will return an AudioSinkInfo object containing type: 'none'. This is currently the only value available.
audioCtx = new window.AudioContext({
sinkId: { type: "none" },
});
// …
audioCtx.sinkId;
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- SetSinkId test example (check out the source code)
setSinkId()sinkIdsinkchange