javatar
javatar

Reputation: 125

How to cut silence in the end of a wav file using Java?

How can I erase the silence (lower then the threshold) part of a wav file using Java? Some say "pull samples out of the PCM data". How can I do that?

Upvotes: 6

Views: 1847

Answers (1)

Jaco Van Niekerk
Jaco Van Niekerk

Reputation: 4182

This should be straight forward. A wav is uncompressed so you can simply open it and process it using standard (binary) input streams.

For the actual audio processing, the Java Sound API will do the trick. Check out http://www.oracle.com/technetwork/java/index-139508.html for full details. Nice to play with.

Upvotes: 3

Related Questions