getMicrophoneDevices

View as MarkdownOpen in Claude

getMicrophoneDevices

  • Const getMicrophoneDevices(): Promise<MediaDeviceInfo[]> — See MediaDeviceInfo for more details.

Returns an array of microphone devices that can be accessed on this device (for which we have permissions).

Returns

Promise<MediaDeviceInfo[]>

Example

await SignalWire.WebRTC.getMicrophoneDevices();
// [
// {
// "deviceId": "ADciLf...NYgF8=",
// "kind": "audioinput",
// "label": "Internal Microphone",
// "groupId": "rgZgKM...NW1hU="
// }
// ]