File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Game Development and the fly likes Sound File Compression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "Sound File Compression" Watch "Sound File Compression" New topic

Sound File Compression

Jeff Klamer

Joined: May 26, 2007
Posts: 7
How can I compress spoken sound files I am now creating to be used in a game created using java?

Currently, I record written text onto my digital/video camera, bring
that recording into Final Cut Xpress editing software, then export using qt compression. Do you know of any formats that will be smaller than the .au or .wav I am now creating? Or, a way(s) to compress further the .au and .wav sound files I am creating?

Thank you,
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

You could use MP3, but the problem with MP3 is that it's patented.

An alternative for MP3 is the free Ogg Vorbis format. You can find Java decoders for that format on Google, just search for "java ogg" for example.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Sound File Compression
jQuery in Action, 3rd edition