Generating an mp3/wav/ogg Waveform using Java

11,142

Solution 1

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.

Solution 2

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.

Share:
11,142
user962206
Author by

user962206

Updated on June 12, 2022

Comments

  • user962206
    user962206 almost 2 years

    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.


    1. enter image description here