Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Reading sound output in Java Date: Sat, 26 Oct 2013 12:43:40 -0400 Organization: A noiseless patient Spider Lines: 84 Message-ID: References: <8146fa5b-403e-47a3-bc4f-cb76a9a2239d@googlegroups.com> <26c9e48e-7ab1-45be-8869-56e2f6b9f9ca@googlegroups.com> <273e95fc-a887-410f-a84e-15be809da895@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 26 Oct 2013 16:43:40 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="6b9e92482af47766954d85fb77d372f5"; logging-data="9589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7vpVTfS5E15JCAv4vy3OdDirJ8uJo6cc=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9 In-Reply-To: Cancel-Lock: sha1:Dgob/GWTXBlC+TJXF6PVyyo3ers= Xref: csiph.com comp.lang.java.programmer:26438 On 10/26/2013 04:47 AM, GGolf wrote: > On 10/26/2013 3:26 AM, Lew wrote: >> Joerg Meier wrote: >>> Lew wrote: >>>> GGolf wrote: >>>>> Lew wrote: >>>>>> GGolf wrote: >>>>>>> Is there a way to read the output that the speakers produce? >>> >>>>>> Are you talking about using a microphone to record the speaker sound, >>>>>> and reading that in a program? >>> >>>>> Yes, but using software instead of hardware. Basically, the "Stereo >>>>> Mix" >>>>> option that most systems had built-in years ago. >>> >>>> You're contradicting yourself, or else I'm not getting you. You said >>>> "Yes" to the >>>> microphone question, but you aren't using hardware. What? >>> >>>> I have no notion of what you mean by the "Stereo Mix" option. >>> >>> >>> In Windows (and. presumably, other OSs), you can record "What you >>> hear", as >>> in, you can record whatever your speakers are playing. This is done on a >>> software level, so it works even if you have no speakers or >>> microphones. It >>> seems to just intercept and copy the data that gets sent to the speaker >>> output. I would guess that's what he want. >> >> Maybe, but what he asked for was "the output that the speakers >> produce", not the >> signal that is input to the speakers. > > Sorry for being so vague. I should have said "the signal that is input > to the speakers". > >> >> If he wants the signal as sent to the speakers, does he want the >> actual electrical >> signal, decoded and turned into some file format, or does he want a >> copy of the >> MP3 or WAV or whatever generated that signal, or what? >> > > I _think_ either will do. > > Let me tell you the use case: I want to > (i) capture a VOIP conversation (which could be between multiple > participants, or just two participants), and > (ii) convert that to text using a speech recognizer (using one of the > various implementations of JSAPI), and > (iii) display that text on screen. > > Note that this will also mean that I should be able to capture the input > to the microphone at the same time. However, if I just get the signal > that's input to the speakers, I think that would be a great beginning - > I could at least transcribe the incoming side. > >> You can guess all you want, but absent the *OP* answering the >> question, it is only a guess. >> >> As another responder said, the question is vague, and certainly >> ambiguous. >> >> So, OP, how about it? Are you going to ask a good question, or give up >> on getting a >> good answer? > > I hope I've clarified the question at least a little more, based on your > useful hints. > > I also aim to try experimenting with the Java Sound API as suggested by > JensJ and others elsethread. > >> >> The technique you use will depend on exactly what you want. >> > There may be some help around about here: