Not TestedTesting not done, may not work properly
Media

Audio Output API

Select physical audio output speaker devices using selectAudioOutput / setSinkId.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

await audioElement.setSinkId(deviceId);

About the Audio Output API Web API

setSinkId allows redirecting audio output from an element to an explicit physical speaker device.

Specification:W3C & WHATWG Web API Standard
Sponsored Content