Like soundcloud and zippyshare1, how can I generate an audio waveform image using java? are there any frameworks or open source libraries available for such case?
I wanted to generate an audio waveform as an image, and upon loading a track, the waveform image with will be loaded.
Start with this answer. The "further processing.." in this case might be to add each instantaneous value to a GeneralPath
, then (scale that path to fit within the painting area and) draw it.
Here are two questions with answers on SO:
Java Program to create a PNG waveform for an audio file
How can I draw sound data from my wav file?
I like my answer to the second question the best because it explains how to do it in all cases, but it doesn't give code.
There are lots of other answers, too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With