This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes I/O and Streams and the fly likes Audio files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Audio files" Watch "Audio files" New topic
Author

Audio files

Alex Armenteros
Ranch Hand

Joined: May 05, 2010
Posts: 73
I'd like to read from an audio file to see the amplitude of the sound (only that, I don't need neither lenght nor freq nor etc) and I don't even know where to start. I've seen the AudioInputStream and I did not see anything there.

I've posted this here as its somewhat related to the streams.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
What file format is this? The OtherOpenSourceProjectsFaq points to various libraries that can access audio files; some of them may have a way of returning this information.
Alex Armenteros
Ranch Hand

Joined: May 05, 2010
Posts: 73
oh yeah...

The format is raw 16 bit 8 kHz signed
 
wood burning stoves
 
subject: Audio files