I'm looking to create webpage for record streaming audio from source (like online radio).
Other alternative is to try capturing the streaming and save to local file, but I couldn't find any way of doing so from a webpage. Solutions like this refer to iPad platfrom, and not suitable for standard webpage.
Any help will be much appreciated, as any development environment (python, ruby, php..).
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.
©2020 All rights reserved.