Reading Audio file in Java as in audioread of MATLAB -
audioread
function of matlab returns y , fs.
y
"audio data in file, returned m-by-n matrix, m number of audio samples read , n number of audio channels in file."
fs
sample rate.
for example, when audio .wav
, has 16 bits per sample, data range of y -32768 , 32767.
i want read .wav
file in java , have same type of data in matlab. audioinputstream
has information such sample rate, sample size in bits, frame size , frame rate how can samples?
extra: can read .mp3
file , transform samples value range of .wav
?
Comments
Post a Comment