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.

https://help.ubuntu.com/community/alsa-oss

http://www.alsa-project.org/main/index.php/main_page


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -