I want to access the audio data that my microphone is recording with Java. How would I do that?
My goal is to save the audio data that is recorded and simultaneously play it to the user.
解决方案
If you don't need any of the additional functionality in JMF, I would avoid it since development has ceased (last version is from 2004), it has compatibility issues with Java 6, has a very restricted functionality in 64-bit VMs and has to installed as a separate extension library.
Audio recording, playback and a few simple media formats are supported directly by JavaSound (javax.sound), which is part of the standard Java API.