By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,675 Members | 2,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,675 IT Pros & Developers. It's quick & easy.

Lib for audio?

P: n/a
I need to read microphone input and determine frequency. Is there a lib
for that?

Thanks,
Dave
Nov 29 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Nov 29, 6:04 am, Dave <dmurray...@cox.netwrote:
I need to read microphone input and determine frequency. Is there a lib
for that?

Thanks,
Dave
You might take a look at the ossaudiodev module (note: it's #nix
only):

http://docs.python.org/lib/module-ossaudiodev.html
http://docs.python.org/lib/mixer-device-objects.html

If you're on Windows, looking at the source for the above module still
might be enlightening.

I also found the following which may or may not be helpful:

http://py.vaults.ca/parnassus/apyllo.py/63131194

Mike
Nov 29 '07 #2

P: n/a
This should do the trick:
http://www.libsdl.org/
Dave wrote:
I need to read microphone input and determine frequency. Is there a lib
for that?

Thanks,
Dave

--
Shane Geiger
IT Director
National Council on Economic Education
sg*****@ncee.net | 402-438-8958 | http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy

Nov 29 '07 #3

P: n/a
Dave a écrit :
I need to read microphone input and determine frequency. Is there a lib
for that?

Thanks,
Dave
Another possible solution, the PortAudio binding (pyportaudio).

http://people.csail.mit.edu/hubert/pyaudio/

Nov 29 '07 #4

P: n/a
>I need to read microphone input and determine frequency. Is there a lib
>for that?

Yet one more possibility includes the OpenAL Python bindings:

http://home.gna.org/oomadness/en/pyopenal/index.html

-tkc

Nov 29 '07 #5

P: n/a
On Nov 29, 2007 11:04 PM, Dave <dm********@cox.netwrote:
I need to read microphone input and determine frequency. Is there a lib
for that?

There's a bunch of code in shtoom for both reading from the mike on
different platforms,
and doing a bit of frequency analysis (for inline DTMF detection).
Nov 30 '07 #6

P: n/a
On Nov 29, 7:04 am, Dave <dmurray...@cox.netwrote:
I need to read microphone input and determine frequency. Is there a lib
for that?

Thanks,
Dave
How about PyMedia? It has input reading capability from any sound
device that your system supports, as well as frequency analysis based
on real-time sampling. It's well worth taking a look:
http://pymedia.org/

Cheers,
-Basilisk96
Nov 30 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.