Take the 2-minute tour ×

I need to know what are the numbers means when i convert wav file to binary array.. I understand the first ~44 bytes are the header but how can I interpreter the bytes data?? There is some table for this values?


share|improve this question
A bit more detail could be helpful. What do you want to do? What have you tried? –  Cedric Reichenbach Apr 12 '13 at 12:59
Please read this : stackoverflow.com/questions/how-to-ask –  Aboutblank Apr 12 '13 at 12:59
add comment

closed as not a real question by jlordo, duffymo, Andrew Thompson, nwinkler, Andremoniy Apr 12 '13 at 14:17


1 Answer

up vote 1 down vote accepted

Here is more information on how a WAV file is structured: http://www-mmsp.ece.mcgill.ca/documents/AudioFormats/WAVE/WAVE.html

If you are writing your code in Java you have at least the three following ways to read the WAVE file:

  1. using the com.sun.media.sound.WaveFileReader. If you are interested in knowing HOW it's done, then you can just look at the source code to see how it's done.

  2. using the musigcg API. You will be able to read the WAV audio data, and also do pretty stuff like showing the audio data as a picture.

  3. check out this article on reading wave files with Java with a WavFile class included in the article. Since the source is included, again, you will be able to understand how it's done.

I would suggest you to take a look at the WaveFileReader first since it's well known and available in the java jdk for years, but you may do as you like.

Edit: should have done that first, by I just summarized the answers to this this SO question.

share|improve this answer
Jalayn thanks for your answer.. The basic manipulations on wav files I already know but i need more info. In general my assignment is to find in audio file the "silent" sections and "plant" there another (short) wav file. Do you have any suggestions how can I find those sections? there need to be some threshold but how to calculate and how recognize where is the "silent"? –  David Apr 12 '13 at 19:01
Have you read stackoverflow.com/questions/3594228/… ? He suggests that you choose a threshold yourself. Maybe you can put the threshold as a parameter of your application. –  Jalayn Apr 12 '13 at 19:09
add comment
