How can I capture audio samples output on macOS?

I'm trying to capture audio samples from the selected output device on macOS using ScreenCaptureKit? Thank you

Answered by Engineer in 789587022

If you are not capturing the screen and only capturing audio, it would be best to use a Core Audio tap than ScreenCaptureKit. Please see Capturing system audio with Core Audio taps for detailed information.

If you are not capturing the screen and only capturing audio, it would be best to use a Core Audio tap than ScreenCaptureKit. Please see Capturing system audio with Core Audio taps for detailed information.

It looks like Core Audio would be appropriate for capturing audio from devices, but what if you want the audio that's output by an application/window? Is ScreenCaptureKit the only option for that case?

How can I capture audio samples output on macOS?
 
 
Q