I have a .wav
file. I want to get the PCM data from that sound file, so that I can get the individual data chunks from the sound and process it.
But I
This can be done with the Java Sound API.
AudioSystem
to get an AudioInputStream
from the file.AudioFormat
.byte[]
to suit the format. E.G. 8 bit mono is a byte[1]
. 16 bit stereo is byte[4]
.byte[]
and it will contain the sound, frame by frame.