471,337 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Lib for audio?

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

Thanks,
Dave
Nov 29 '07 #1
6 1428
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
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
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
>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
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
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.

Similar topics

2 posts views Thread by Bruce Bon | last post: by
8 posts views Thread by fuliopen | last post: by
reply views Thread by laredotornado | last post: by
4 posts views Thread by Gary Morrison | last post: by
3 posts views Thread by abrtlt | last post: by
1 post views Thread by =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.