AudioDevice
Electron APIs / recorder / AudioDevice
Audio device available on the system.
This interface is used to describe both input (e.g., microphones) and output (e.g., speakers, headphones) audio devices.
Example
const device: AudioDevice = {
type: "output",
id: "speakers-1",
name: "Realtek High Definition Audio",
isDefault: true,
};
Properties
Property | Modifier | Type | Description |
---|---|---|---|
id | readonly | string | A unique identifier for the audio device. |
isDefault | readonly | boolean | Whether this device is currently set as the system default. |
name | readonly | string | A human-readable name for the audio device. |
type | readonly | AudioDeviceType | The type of the audio device (input or output). |