Message Boards Message Boards

Convert .wav to .mp3?

GROUPS:

Hi,

I have a set of audio snippets in .wav format. I've imported these into Mathmatica without any issues, and edited them according to taste. I then tried to export the snippets (we pretend that I have an audio object called 'audiosnippet') using

Export[audiosnippetfile, audiosnippet, "MP3"]

and also

Export["audiosnippetfile.mp3", audiosnippet]

but all I get is white noise. Is there any functionallity in Mathmatica to convert between different audio formats?

Thanks!

POSTED BY: Fredrik Erling
Answer
2 months ago

Please try:

Export["audiosnippetfile.mp3", Audio[audiosnippet, "Real32"]]

There is a bug in Export of integer type Audio to MP3. This bug will be fixed in the next release.

POSTED BY: Piotr Wendykier
Answer
2 months ago

Yeah! That did it.

Elegant.

Thank you very much for your swift reply! =D

POSTED BY: Fredrik Erling
Answer
2 months ago

Group Abstract Group Abstract