[Pythonmac-SIG] Sound advice
Jack Jansen
Jack.Jansen@oratrix.nl
Thu, 17 Jan 2002 22:18:27 +0100
On Thursday, January 17, 2002, at 06:36 PM, Hans verschooten wrote:
> I'm trying to split a large number of sound files as soon as
> the volume drops below a certain level. So I'm looking for a
> way to measure the volume of the sound files. And then split
> them to separate files. These sound files are AIFF and MP3
> files.
>
> Does anybody have an idea if this is possible in Python, I'm
> using the UNIX version on OS 10.1.2 at the moment.
Once you have the files in memory you can use the audioop module
to operate on the samples reasonably efficiently. I think the
aiff module is part of the standard distribution, but I know of
nothing for MP3.
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution --
Emma Goldman -