Generating an mp3/wav/ogg Waveform using Java
Asked Answered
P

2

6

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
Perdue answered 3/11, 2012 at 12:17 Comment(6)
"Like soundcloud and zippyshare," A picture paints a thousand words. Show some examples of this.Landeros
Please look at this link : codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-DisplayChuddar
Like I edited into the question?Landeros
possible duplicate of Java Program that create a PNG waveform for an audio file?Konstantin
there are dozens of such questions on SO, I chose the one that has a complete solutionKonstantin
@DenisTulskiy Where's the one who has a complete solution?Perdue
L
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.

Landeros answered 3/11, 2012 at 14:24 Comment(0)
P
1

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.

Prather answered 4/11, 2012 at 15:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.