I am using Java to write an app that sends a request to Alexa's SpeechRecognizer API. I managed to correctly format the request (with audio binary attachment to the body of request) and got a proper response. The problem is I cannot play the sound attached to the response or convert it to a playable mp3 file. Do you have any suggestions on how to do it? Which libraries for java would be useful in playing binary audio in response? I tried using javax.sound.sampled but only got an UnsupportedAudioFileException: could not get audio input stream from input file.
Thanks for your help