Apple introduced API that enables recording audio from other apps or the entire system in macOS 14.4, but it's poorly documented and there's no sample code available, so I decided to fix that: https://github.com/insidegui/AudioCap
GitHub - insidegui/AudioCap: Sample code for recording system audio on macOS 14.4+
Sample code for recording system audio on macOS 14.4+ - insidegui/AudioCap
@_inside@matt Yeah, AFAIK you need screen recording permissions to be able to request available content so you can filter what you want to record (and thus get audio data from)