Capture audio out Python -
i capture raw data audio out, using python. in python docs seems using ossaudiodev works purpose. however, using ubuntu 11.10, has no /dev/dsp:
>>> import ossaudiodev >>> ossaudiodev.open('r'); traceback (most recent call last): file "<stdin>", line 1, in <module> ioerror: [errno 2] no such file or directory: '/dev/dsp' has got clue how capture sound sound card outputs using python?
oss older , deprecated audio system linux. current standard use alsa, , layer on top of alsa either jack or pulseaudio. ubuntu uses pulseaudio.
the best thing find python bindings connecting pulseaudio. did quick google search , didn't find you, , don't have time follow more right now.
edit: remembered alsa have oss compatibility mode. might able install oss compatibility stuff, use python code have.
Comments
Post a Comment