473,480 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sound processing modules in python - anyone?

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, there was only the Tk/Tcl stuff (where's the .py ?).
could anyone help me with that (or with any other sound module for python)?
thanks in advance,
g

Nov 6 '06 #1
4 2105
I've had a brief look at this and there isn't a sound orientated
library as such. You can however use numpy to do stuff like FFTs and
there are there is a wave module in python that will allow you to
create wavs, you can google for importing wav's into numpy arrays.
This seemed like a good idea to me as I think Numpy is written in C or
C++ (or maybe it was fortran). There seem to be a lot of people using
numpy in a similar way to matlab so there is a fair ammount of the
standard DSP routines have already been written.
si*****@lkb.ens.fr wrote:
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, there was only the Tk/Tcl stuff (where's the .py ?).
could anyone help me with that (or with any other sound module for python)?
thanks in advance,
g
Nov 7 '06 #2
I've had a brief look at this and there isn't a sound orientated
library as such. You can however use numpy to do stuff like FFTs and
there are there is a wave module in python that will allow you to
create wavs, you can google for importing wav's into numpy arrays.
This seemed like a good idea to me as I think Numpy is written in C or
C++ (or maybe it was fortran). There seem to be a lot of people using
numpy in a similar way to matlab so there is a fair ammount of the
standard DSP routines have already been written.
si*****@lkb.ens.fr wrote:
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, there was only the Tk/Tcl stuff (where's the .py ?).
could anyone help me with that (or with any other sound module for python)?
thanks in advance,
g
Nov 7 '06 #3
Hi,

you might want to take a look at pyaudio. A module to read and write
audio files. It is based on numpy and wraps the libsndfile library to
use it from python. With the capabilites of numpy and scipy you
probably have all you need.

Here's a link to pyaudio
http://www.ar.media.kyoto-u.ac.jp/me...dio/index.html
Here you find numpy and scipy: http://scipy.org/SciPy

Enjoy! Bernhard

Nov 7 '06 #4
On Mon, 6 Nov 2006 23:06:18 +0100 (CET), si*****@lkb.ens.fr wrote:
>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, there was only the Tk/Tcl stuff (where's the .py ?).
could anyone help me with that (or with any other sound module for python)?
thanks in advance,
g
Here is the download page, listing Python (only version 2.3 though).
The source is available from the same page.

Or maybe, from comp.lang.python.announce:
----------------
An early beta of the csound routine library is out with another
version to follow soon after. The csound library is a group of
routines to minipulate .csd and .orc .sco .src (shortened orc format)
combine delete exc.

https://sourceforge.net/project/show...roup_id=156455
----------------

I believe that csound is a very mature and complete toolbox for music
generation and sound manipulation.

--
Christian Aastorp
Nov 7 '06 #5

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

Similar topics

1
2527
by: christof hoeke | last post by:
hi, i wrote a small application which extracts a javadoc similar documentation for xslt stylesheets using python, xslt and pyana. using non-ascii characters was a problem. so i set the...
2
2401
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
3524
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,...
6
1886
by: Hung ho | last post by:
Hi. I just finished reading an introductory Python book called "Python Programming for the absolute beginner" by Michael Dawson. I found it very interesting, and easy to follow. Python does really...
0
1935
by: Nick Coghlan | last post by:
Anyone playing with the CPython interpreter's new command line switch might have noticed that it only works with top-level modules (i.e. scripts that are directly on sys.path). If the script is...
15
2557
by: Nick Coghlan | last post by:
Python 2.4's -m command line switch only works for modules directly on sys.path. Trying to use it with modules inside packages will fail with a "Module not found" error. This PEP aims to fix that...
1
3200
by: Niklas Paro | last post by:
Hello I would need way to check the amplitude (over time) for a sound file in python. I'm sure this can be done, for example the audioop.rms function seems to be able return amplitude values....
9
2653
by: Andrew Gwozdziewycz | last post by:
I've been looking recently for date processing modules that can parse dates in forms such as "next week" or "6 days from next sunday". PHP has a function that will do this called 'strtotime',...
0
197
by: Andrii V. Mishkovskyi | last post by:
2008/9/18 Robert Rawlins <robert.rawlins@thinkbluemedia.co.uk>: ElementTree is not an external package starting from Python 2.5. It's in stdlib under 'xml.etree.ElementTree' name. There's also a...
0
6908
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
7044
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,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6929
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...
0
5337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.