UsbAudioInputDevice

@RequiresApi(value = 23)
data class UsbAudioInputDevice(val deviceInfo: AudioDeviceInfo)

Represents a USB audio input device (microphone) that may not be detected by AudioSwitch.

USB microphones that are input-only (no speaker output) are not recognized by Twilio's AudioSwitch library because it only detects devices that trigger ACTION_HEADSET_PLUG, which requires both input and output capabilities.

This class wraps Android's AudioDeviceInfo to provide access to USB microphones like the Rode Wireless Go II and similar professional audio equipment.

Constructors

Link copied to clipboard
constructor(deviceInfo: AudioDeviceInfo)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The underlying Android AudioDeviceInfo

Link copied to clipboard
val id: Int

Unique device ID

Link copied to clipboard

The product name of the USB device

Link copied to clipboard
val type: Int

The device type from AudioDeviceInfo

Link copied to clipboard

Human-readable type name