tags:

views:

65

answers:

2

If I have an MP3 file how can I convert it to a WAV file? (preferably, using a pure python approach)

+1  A: 

How about taking a look at this:
Python Audio Tools

sberry2A
I meant a pure python approach
Joseph
Joseph
why *pure python* ?
Gabriel Sosa
I want to use it in Google Appengine which unfortunately only allows pure python
Joseph
A: 

In a comment on sbery2A's answer, you said you want to put an MP3 decoding feature into Google App Engine.

Your only possible hope is to use Python to send the MP3 data to another server, and do the MP3 decode on that server, and then send the decoded data back to the App Engine server. Google isn't going to let you put heavy load on the CPUs of the App Engine servers by doing the MP3 decode actually on the server. Google also prevents you from running any C code; see the App Engine FAQ. You aren't even allowed to spawn sub-processes or use Python threading.

App Engine does have a Java API. I just checked and found a Java MP3 decoder, and it is LGPL so you don't have to worry much about the license.

I don't know if there is any way to call Java code from Python code in App Engine, but you might try looking into that.

steveha
Thanks. I'll definitely look into that. While it's not possible to run Java from Python, it is possible to deploy a separate version with Java, and have the Python version communicate with the Java version.
Joseph