setSinkIdAsync

external fun setSinkIdAsync(sinkId: String): Promise<Void>(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