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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -