Capturing Mac OS X System Audio output with Python

Posted by richbs on Stack Overflow See other posts from Stack Overflow or by richbs
Published on 2010-05-21T14:48:27Z Indexed on 2010/05/21 14:50 UTC
Read the original article Hit count: 158

Filed under:
|
|

Hello,

I've been trying to "hijack" the Mac OS X system audio using PyAudio and save to a wav in python. That is, I do not want to record from an input device such as a microphone. I want to grab the sound output from any or all applications.

I have followed the tutorials on the PyAudio site but these do not appear to cover my use case and when I try to read from the output stream I unsurprisingly get the paCanNotReadFromAnOutputOnlyStream exception. Fair enough! Is there a way to do what I am proposing with the PyAudio or other FOSS Python Library?

© Stack Overflow or respective owner

Related posts about python

Related posts about macosx