To play a wav file read the wav file and pass the bytes to audio track chunck by chunk. private void playWaveFile(){ // define the buffer size for audio track int minBufferSize = AudioTrack.getMinBufferSize(8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT); int bufferSize = 512; AudioTrack audioTrack = new AudioTrack(AudioManager.STREAM_VOICE_CALL, 8000, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, minBufferSize, AudioTrack.MODE_STREAM); String filepath = "File Path"; int count = 0; byte[] data = new byte[bufferSize]; try { FileInputStream fileInp...
This blog is for ANDROID developers which contains information about development, resolutions of common issues and much more about ANDROID...