I can receive a byte array from a Socket
. I need to play audio from this byte array - the audio is encoded with AMR 8000Hz.
I found that I can play AMR audio with MediaPlayer
. However, MediaPlayer
can't play music from byte array, and I don't want to write them to file.
Is there a way to play AMR sound from byte array on android?