setSinkId

inline suspend fun HTMLMediaElement.setSinkId(sinkId: String)(source)

The setSinkId() method of the HTMLMediaElement interface sets the ID of the audio device to use for output and returns a Promise. Available only in secure contexts.

MDN Reference