How can I add silence to the beginning and the end of a WAV file开发者_开发百科 with Java?
the length of the silence should be variable.
see this thread: Join two WAV files from Java?
If you have create a wav that is just a few seconds of silence you could combine your files together to get the required result, silence.wav + myfile.wav + silence.wav
The thread I linked to gives you the barebones code to combine wav file together. - be sure to vote up the answer in the other thread :)
Hope this helps, Eamonn
精彩评论