473,394 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1492
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bruce Bon | last post by:
The class below is intended to play a Sun audio file (.au) in the background while the main thread, which is servicing a GUI, continues without impact. It doesn't work. For a sound file that...
1
by: laredotornado | last post by:
Hello, I want to play an audio file embedded on my page by clicking on an audio image and the page change to a new page. Is there a cross-browser Javascript way to do this? Right now the code I...
8
by: fuliopen | last post by:
I like to create some audio files for my web site. These are all language files to help the visitor learn a foreign language. There is no music. As far as I know, I can create three types of...
0
by: laredotornado | last post by:
Hello, I want to play an audio file by clicking on an audio icon and not having the page switch out underneath. Right now the code I have is ... <html> <head> <title>Dictionary:...
4
by: Gary Morrison | last post by:
I need to create a lot of fairly-short audio files from the concatenation of a lot of even shorter audio files. I'd like to control that from a Perl script. The audio files would presumably be...
3
by: abrtlt | last post by:
I would like to have a web page in which, when the user clicks on any of several specific elements, a specific audio file is played, without reloading the page. The specific audio file name is...
2
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
1
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
I am using Windows Media Player to play my half second audio files one after the other using the code below... My problem comes when I play a second audio file immediately after the first one...
3
by: AWW | last post by:
Using XP and VB 2005, it seemed like a good idea to save audio in the clipboard and then play it with backgroundworker. Cannot find a good Clipboard audio example anywhere - just SetAudio and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.