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

1

6

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?

Stallfeed answered 8/5, 2012 at 8:25 Comment(2)
#1808646 + #4787160Tempo
@Stallfeed can you share your solution code? thanksHike
M
3

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.

Monkeypot answered 8/5, 2012 at 8:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.