473,387 Members | 1,365 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,387 software developers and data experts.

record sound with python

Hi everybody,

What is the best way to record sound from the sound card with
python ?

The method I am looking for must but portable. Actually, I use
snack tk package, but is there a best way ?

Thanks

O.R.
Jul 18 '05 #1
2 6201
Hello Olivier,
What is the best way to record sound from the sound card with
python ?

The method I am looking for must but portable. Actually, I use
snack tk package, but is there a best way ?

I've used PortAudio (http://www.portaudio.com/) it was OK. There is a
python binding to it and to fastautio at
http://www.freenet.org.nz/python/pyPortAudio/.

HTH.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.spymac.net
The only difference between children and adults is the price of the toys
Jul 18 '05 #2
"Olivier Ravard" <ol************@novagrid.com> wrote in message news:<ce**********@news.univ-rennes1.fr>...
Hi everybody,

What is the best way to record sound from the sound card with
python ?

The method I am looking for must but portable. Actually, I use
snack tk package, but is there a best way ?

Thanks

O.R.


The standard library has no platform independent support for sound
input.

Snack is very easy to use, so if it fits your requirements I would not
look for anything else.

The main issue with Snack - at least last time I checked - is that the
python bindings do not make it easy to access the audio samples in
real
time as they are streaming. You have to use tk for this.

The portaudio package which was mentioned in another reply is
execelent
quality also, and relatively easy to use.
Portaudio itself is portable by design, and has been used on a large
number of platforms.
The python bindings may be less portable - I have not used them.

Jesper

--
http://JesperOlsen.Net
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Charles Hixson | last post by:
I'm looking for a simple means of generatings sounds. Basically what I want to do is play music from the information available in sheet music. I would like to send the commands to the player in...
6
by: Paul Moore | last post by:
Does anyone know of a Python library which handles sound file formats (MP3, Ogg, FLAC are the three I'm nost interested in). I'd like something that can manipulate "metadata" - stuff like artist,...
5
by: Chris | last post by:
I want a program that can "draw" sound. Imagine drawing a graph of frequency against time - and then being able to play it over the computer speakers. Can this be done in Python? As a...
3
by: Bill Dandreta | last post by:
I posted a message ("Help with my 1st Tkinter program") a few days ago complaining that Python did not have any built in basic cross platform sound capability. I was wrong (at least partly). Python...
0
by: MLH | last post by:
Edit, Insert Object & choose Wave Object, the following OLE object thing gets inserted onto the form... Microsoft Sound Recorder Version 5.1 (Build 2600.xpsp2.030422-1633: Service Pack 1)...
2
by: positivebalance41m | last post by:
I have been searching how to do sound capture (record audio input) in VB.NET for days now. I find some references to "winmm.dll" calls, but they give VB5 or VB6 examples which won't code convert...
4
by: sittner | last post by:
Hi everyone, I'm looking for a module for sound processing (manipulating sound objets, filters, ffts etc.). I tried Snack, but when i downloaded the package that was supposed to be for python,...
2
by: Abubakar | last post by:
Hi, I want my app's user to be able to record sound through my app and save it to the/some file. How can I do that? Are there any classes in the .net framework that let us do this? Or will I...
0
by: Karthik | last post by:
Hi, I want to record a sound wave from a mic and at the same time invert it and play the inverted wave.My code goes as follows, however nothing is written into the E:\inverted.wav file.Thanks in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.