The full set of audio input and output devices currently connected to the system.
Returned by User.getAvailableAudioDevices. Subscribe to UserEventType.AUDIO_DEVICES_CHANGED to receive an updated list whenever a device is connected or disconnected.
const devices = await user.getAvailableAudioDevices();console.log("Microphones:", devices.inputDevices.map(d => d.label));console.log("Speakers:", devices.outputDevices.map(d => d.label)); Copy
const devices = await user.getAvailableAudioDevices();console.log("Microphones:", devices.inputDevices.map(d => d.label));console.log("Speakers:", devices.outputDevices.map(d => d.label));
The full set of audio input and output devices currently connected to the system.
Returned by User.getAvailableAudioDevices. Subscribe to UserEventType.AUDIO_DEVICES_CHANGED to receive an updated list whenever a device is connected or disconnected.
Example
See