This question has not been answered for more than a year, and no one seems to have a better idea, so if you still have a problem or someone else sees it in the future, then I just recommend this explanation and tutorial to you: Java Capturing Audio .
Please tell me if this is what you need, or if you need help.
Bernd elkemann
source share