AudioInputDevice
classin packageklyn.audio
public final class AudioInputDevice
AudioInputDevice

Immutable description of an OS audio input. Obtain current descriptors from Microphone.listDevices(); enumeration does not start recording. IDs are opaque, backend-specific identifiers, not list positions or names. A disconnected input must be enumerated again; selecting it never falls back to the default input.

Example

for device in Microphone.listDevices(): print(device.name, device.id)

Properties
Modifier and Type Member Description
public readonly property id
id as String
Opaque OS identifier.
public readonly property name
name as String
Human-readable OS label; different devices can share it.
Constructors
Modifier and Type Member Description
public AudioInputDevice
AudioInputDevice(notnull id as String, notnull name as String)
Creates a descriptor, without opening or checking the device.
Methods
Modifier and Type Member Description
public override toString
toString() as String
Display label, not the native identifier.