Message Boards Message Boards

Convert .wav to .mp3?

Posted 6 years ago

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
2 Replies

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

Yeah! That did it.

Elegant.

Thank you very much for your swift reply! =D

POSTED BY: Fredrik Erling
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract