Skip to main content

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

PropertyModifierTypeDescription
idreadonlystringA unique identifier for the audio device.
isDefaultreadonlybooleanWhether this device is currently set as the system default.
namereadonlystringA human-readable name for the audio device.
typereadonlyAudioDeviceTypeThe type of the audio device (input or output).