system_profiler
ist das Tool für Mac OS zum Anzeigen der Hardware- oder Softwarekonfiguration.
Holen Sie sich den Datentyp, nach dem Sie suchen möchten --listDataTypes
.
$ system_profiler -listDataTypes | grep Audio
SPAudioDataType
Dann feuern Sie den Befehl,
$ system_profiler SPAudioDataType
Audio:
Intel High Definition Audio:
Audio ID: 128
Headphone:
Connection: Combination Output
Speaker:
Connection: Internal
External Microphone / iPhone Headset:
Connection: Combination Output
Internal Microphone:
Connection: Internal
S/PDIF Optical Digital Audio Output:
Connection: Combination Output
HDMI / DisplayPort Output:
Connection: Display
Devices:
Built-in Microphone:
Default Input Device: Yes
Input Channels: 2
Manufacturer: Apple Inc.
Current SampleRate: 44100
Transport: Built-in
Built-in Output:
Default Output Device: Yes
Default System Output Device: Yes
Manufacturer: Apple Inc.
Output Channels: 2
Current SampleRate: 44100
Transport: Built-in