I\'m looking to create webpage for record streaming audio from source (like online radio).
At first I thought of doing something like recording from speakers, but so
The sound coming through the system is generally (1) available through one of the TargetDataLines
of the Java Sound (sampled) API. Hook into that TargetDataLine
& write the bytes directly to disk.
(Assuming you have the right to do so, of course.)
See the Capturing Audio lesson in the Java Tutorial for details. See my answer to JavaSound mixer with both Port(s) and DataLine(s)? for source to easily explore the available data lines. It is probably the "Primary Sound Capture Driver" that you need for this.
Java code must be trusted (or running with no security manager) to eavesdrop on the sound lines.