How can I play/record audio in Java?

John Mitchell

The basic answer to sound support in Java is to check out the Java Sound API which is part of the Java Media Framework API.

If you just want simple audio playback from an applet, check out How can I play an audio clip from an applet?