Convert WAV to MP3 in Java

We have previously posted a tutorial on how to convert audio files to MP3 using Node.JS, and while our API remains the same, we can repackage it for use in other languages like Java. With this, you can instantly perform popular file conversions such as WAV, AAC, or M4A to MP3.

Image for post
Image for post

To integrate this API, our first step will be to add a reference to Jitpack to our repositories. This is shown below:

Then, we can add a reference for our API client to the dependency in pom.xml:

After this, we can call our function, AudioConvertToMp3:

Now, you can easily add MP3 conversion capabilities to your application in Java! To retrieve your free API Key, you can go to the Cloudmersive website where you will gain access to 800 monthly calls across our library of APIs.

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store