Display sound (.wav / .mp3) as a graph in Java

I need to display a graph of an audio file - i.e. waveform displayed by audio editors such as Audacity.

How can I do it? Is there anything in the Java Sound API that can help me?

+5
source share
2 answers

I eventually found the code to do what I wanted in chapter 10 of the Swing Hacks book .

+2
source

In the Java Sound API, they gouge AudioSystem.getAudioInputStream which will return an AudioInputStream which will show you how to open the form of audio files in Java. It’s good enough to read WAV files, but not quite so for mp3.

. getAudioFormat , / .. (Swing, AWT, png ..).

+2

All Articles