Skip to content

Audio

In this section you will learn how to get information about detected audio devices or interfaces. Results might differ on different platforms as not everything is available/detectable on each platform:

For function reference and examples we assume, that we imported systeminspector as follows:

const si = require('@ambicuity/systeminspector');

Detected Audio Devices

All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)

FunctionResult objectLinuxBSDMacWinSunComments
si.audio(cb)[{...}]XXXaudio informatiom
[0].idXXXinternal ID
[0].nameXXXaudio name
[0].manufacturerXXXmanufacturer
[0].revisionXrevision
[0].driverXdriver
[0].defaultXis default
[0].channelXXchannel e.g. Build-In, HDMI, USB, ...
[0].typeXXXtype e.g. Speaker
[0].inXis input channel
[0].outXis output channel
[0].statusXXstatus

Examples

Example
const si = require('@ambicuity/systeminspector');
si.audio().then(data => console.log(data));
json
[
  {
    id: 0,
    name: 'MacBook Microphone',
    manufacturer: 'Apple Inc.',
    revision: null,
    driver: null,
    default: true,
    channel: 'Built-In',
    type: 'Microphone',
    in: true,
    out: false,
    status: 'online'
  },
  {
    id: 1,
    name: 'MacBook Speaker',
    manufacturer: 'Apple Inc.',
    revision: null,
    driver: null,
    default: true,
    channel: 'Built-In',
    type: 'Speaker',
    in: false,
    out: true,
    status: 'online'
  }
]
Inspector AI
SystemInspector AI initialized. How can I help you query your hardware?