Java Code to Convert WAV to mp3

import com.wav.client.invoker.ApiClient;
import com.wav.client.invoker.ApiException;
import com.wav.client.invoker.Configuration;
import com.wav.client.invoker.auth.*;
import com.wav.client.AudioApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
AudioApi apiInstance = new AudioApi();
File inputFile = new File("/path/to/inputfile");
String fileUrl = "http://wap.com/songs/chammak-challo.wav"; 
Integer bitRate = 64;
try {
    byte[] result = apiInstance.audioConvertToMp3(inputFile, fileUrl, bitRate);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling AudioApi#audioConvertToMp3");
    e.printStackTrace();
}