Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #26400 > unrolled thread
| Started by | GGolf <invalid@invalid.com> |
|---|---|
| First post | 2013-10-22 08:52 +0530 |
| Last post | 2013-10-25 08:03 +0200 |
| Articles | 18 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
Reading sound output in Java GGolf <invalid@invalid.com> - 2013-10-22 08:52 +0530
Re: Reading sound output in Java Lew <lewbloch@gmail.com> - 2013-10-23 16:00 -0700
Re: Reading sound output in Java GGolf <invalid@invalid.com> - 2013-10-24 15:43 +0530
Re: Reading sound output in Java Jeff Higgins <jeff@invalid.invalid> - 2013-10-24 11:47 -0400
Re: Reading sound output in Java Lew <lewbloch@gmail.com> - 2013-10-24 11:18 -0700
Re: Reading sound output in Java Jeff Higgins <jeff@invalid.invalid> - 2013-10-24 16:27 -0400
Re: Reading sound output in Java Jeff Higgins <jeff@invalid.invalid> - 2013-10-24 16:36 -0400
Re: Reading sound output in Java Joerg Meier <joergmmeier@arcor.de> - 2013-10-25 13:47 +0200
Re: Reading sound output in Java Lew <lewbloch@gmail.com> - 2013-10-25 14:56 -0700
Re: Reading sound output in Java GGolf <invalid@invalid.com> - 2013-10-26 14:17 +0530
Re: Reading sound output in Java Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-26 09:32 +0000
Re: Reading sound output in Java GGolf <invalid@invalid.com> - 2013-10-26 15:40 +0530
Re: Reading sound output in Java Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2013-10-26 11:45 +0000
Re: Reading sound output in Java Jeff Higgins <jeff@invalid.invalid> - 2013-10-26 11:36 -0400
Re: Reading sound output in Java Jeff Higgins <jeff@invalid.invalid> - 2013-10-26 11:49 -0400
Re: Reading sound output in Java Jeff Higgins <jeff@invalid.invalid> - 2013-10-26 13:10 -0400
Re: Reading sound output in Java Jeff Higgins <jeff@invalid.invalid> - 2013-10-26 12:43 -0400
Re: Reading sound output in Java Jens - 2013-10-25 08:03 +0200
| From | GGolf <invalid@invalid.com> |
|---|---|
| Date | 2013-10-22 08:52 +0530 |
| Subject | Reading sound output in Java |
| Message-ID | <l44r27$ss6$1@speranza.aioe.org> |
Is there a way to read the output that the speakers produce?
[toc] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-10-23 16:00 -0700 |
| Message-ID | <8146fa5b-403e-47a3-bc4f-cb76a9a2239d@googlegroups.com> |
| In reply to | #26400 |
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? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | GGolf <invalid@invalid.com> |
|---|---|
| Date | 2013-10-24 15:43 +0530 |
| Message-ID | <l4ars3$d7$1@speranza.aioe.org> |
| In reply to | #26405 |
On 10/24/2013 4:30 AM, 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.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-24 11:47 -0400 |
| Message-ID | <l4bfdm$9pk$1@dont-email.me> |
| In reply to | #26406 |
On 10/24/2013 06:13 AM, GGolf wrote: > On 10/24/2013 4:30 AM, 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. A pretty vague question. Here's a vague response. http://www.developerfusion.com/article/84314/wired-for-sound/ http://docs.oracle.com/javase/7/docs/technotes/guides/sound/index.html http://docs.oracle.com/javase/7/docs/technotes/guides/sound/programmer_guide/contents.html http://www.developerfusion.com/article/84314/wired-for-sound/
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-10-24 11:18 -0700 |
| Message-ID | <26c9e48e-7ab1-45be-8869-56e2f6b9f9ca@googlegroups.com> |
| In reply to | #26406 |
On Thursday, October 24, 2013 3:13:23 AM UTC-7, GGolf wrote: > On 10/24/2013 4:30 AM, 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. How about you actually define for us precisely what you want to do? Then maybe someone can help you. Here's the thing: how else will you capture what the speakers produce if you don't use a microphone? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-24 16:27 -0400 |
| Message-ID | <l4bvs4$ifl$1@dont-email.me> |
| In reply to | #26408 |
On 10/24/2013 02:18 PM, Lew wrote: > On Thursday, October 24, 2013 3:13:23 AM UTC-7, GGolf wrote: >> On 10/24/2013 4:30 AM, 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. > > How about you actually define for us precisely what you want to do? > > Then maybe someone can help you. > > Here's the thing: how else will you capture what the speakers produce if you > don't use a microphone? > stereo+mix+java I suspect shows results for what he is after a search on javasound brings much more info
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-24 16:36 -0400 |
| Message-ID | <l4c0cc$lcf$1@dont-email.me> |
| In reply to | #26409 |
On 10/24/2013 04:27 PM, Jeff Higgins wrote: > On 10/24/2013 02:18 PM, Lew wrote: >> On Thursday, October 24, 2013 3:13:23 AM UTC-7, GGolf wrote: >>> On 10/24/2013 4:30 AM, 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. >> >> How about you actually define for us precisely what you want to do? >> >> Then maybe someone can help you. >> >> Here's the thing: how else will you capture what the speakers produce >> if you >> don't use a microphone? >> > stereo+mix+java I suspect shows results for what he is after > a search on javasound brings much more info > I also suspect he might find what he wants in the Java Sound Tutorial <http://docs.oracle.com/javase/tutorial/sound/index.html>
[toc] | [prev] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2013-10-25 13:47 +0200 |
| Message-ID | <d7idwbgh05g5$.1epfhq43iu77s.dlg@40tude.net> |
| In reply to | #26408 |
On Thu, 24 Oct 2013 11:18:03 -0700 (PDT), Lew wrote: > On Thursday, October 24, 2013 3:13:23 AM UTC-7, GGolf wrote: >> On 10/24/2013 4:30 AM, 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. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-10-25 14:56 -0700 |
| Message-ID | <273e95fc-a887-410f-a84e-15be809da895@googlegroups.com> |
| In reply to | #26419 |
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. 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? 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? The technique you use will depend on exactly what you want. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | GGolf <invalid@invalid.com> |
|---|---|
| Date | 2013-10-26 14:17 +0530 |
| Message-ID | <l4fvi9$23a$1@speranza.aioe.org> |
| In reply to | #26427 |
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. >
[toc] | [prev] | [next] | [standalone]
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
|---|---|
| Date | 2013-10-26 09:32 +0000 |
| Message-ID | <slrnl6n30j.mol.avl@gamma.logic.tuwien.ac.at> |
| In reply to | #26430 |
GGolf <invalid@invalid.com> wrote: > 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. Is this going to happen real-time? (I have no idea if consumer-grade speech-to-text is fast enough for that.) If so, I'd use a second PC (thus with independent sound system) with a microphone & line-in(connected to a "Y"-split of the headphones' cable) to capture both outgoing and incoming speech. Unless you've got some very special sound hardware on the primary (VoIP running) machine, capturing both input and output (where input isn't itself mixed into the output) may just not be possible. PS: note, that recording of conversations may have legal issues, so make sure that at the start of the recording everyone involved knows it and agrees to it. (this may not be relevant if the signal is used *only* for speech-to-text and displaying of text, and neither text nor signal are saved, but I'm not a lawyer.) If you were from NSA, then you probably wouldn't need to ask here in the first place...
[toc] | [prev] | [next] | [standalone]
| From | GGolf <invalid@invalid.com> |
|---|---|
| Date | 2013-10-26 15:40 +0530 |
| Message-ID | <l4g4ev$d0g$1@speranza.aioe.org> |
| In reply to | #26431 |
On 10/26/2013 3:02 PM, Andreas Leitgeb wrote: > GGolf <invalid@invalid.com> wrote: >> 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. > > Is this going to happen real-time? (I have no idea if consumer-grade > speech-to-text is fast enough for that.) I've seen a couple of demos where this has been done, though I guess the participants have to speak slower than usual for the transcription to make some sense. > > If so, I'd use a second PC (thus with independent sound system) with > a microphone & line-in(connected to a "Y"-split of the headphones' cable) > to capture both outgoing and incoming speech. > Unless you've got some very special sound hardware on the primary (VoIP > running) machine, capturing both input and output (where input isn't > itself mixed into the output) may just not be possible. Hmm...I think you got a point here. I remember that the Stereo Mix option on Windows wouldn't record the input to the microphone unless you would /play it back/ to the speakers. > > PS: note, that recording of conversations may have legal issues, so make > sure that at the start of the recording everyone involved knows it and > agrees to it. (this may not be relevant if the signal is used *only* for > speech-to-text and displaying of text, and neither text nor signal are > saved, but I'm not a lawyer.) Only the text is going to be displayed (the user can save the transcript if they want, but it won't go anywhere by itself). > If you were from NSA, then you probably > wouldn't need to ask here in the first place... > True :)
[toc] | [prev] | [next] | [standalone]
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
|---|---|
| Date | 2013-10-26 11:45 +0000 |
| Message-ID | <slrnl6nar2.mol.avl@gamma.logic.tuwien.ac.at> |
| In reply to | #26432 |
GGolf <invalid@invalid.com> wrote: >> Unless you've got some very special sound hardware on the primary (VoIP >> running) machine, capturing both input and output (where input isn't >> itself mixed into the output) may just not be possible. > Hmm...I think you got a point here. I remember that the Stereo Mix > option on Windows wouldn't record the input to the microphone unless you > would /play it back/ to the speakers. The core of the problem appears to be that there is only one sound-device on a typical system, and the mixer settings are a property of that one device, not per-process. If the VoIP application obviously specifically requires to record only the microphone (in order to transmit it to the parties), then another process cannot have its own settings to record everything. I'm not sure if you need a recording solution for yourself, or if you intended to create a transcription add-on to be used by Joe "VoIP" User. If it was the latter, then I fear it won't be that easy. If you create your own VoIP client that would be a different story, and also if there was an existing VoIP client with a decent API for plugging into the sound stream.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-26 11:36 -0400 |
| Message-ID | <l4gnhl$j4d$1@dont-email.me> |
| In reply to | #26435 |
On 10/26/2013 07:45 AM, Andreas Leitgeb wrote: > GGolf <invalid@invalid.com> wrote: >>> Unless you've got some very special sound hardware on the primary (VoIP >>> running) machine, capturing both input and output (where input isn't >>> itself mixed into the output) may just not be possible. >> Hmm...I think you got a point here. I remember that the Stereo Mix >> option on Windows wouldn't record the input to the microphone unless you >> would /play it back/ to the speakers. > > The core of the problem appears to be that there is only one sound-device > on a typical system, and the mixer settings are a property of that one device, > not per-process. > > If the VoIP application obviously specifically requires to record only the > microphone (in order to transmit it to the parties), then another process > cannot have its own settings to record everything. > > I'm not sure if you need a recording solution for yourself, or if you > intended to create a transcription add-on to be used by Joe "VoIP" User. > If it was the latter, then I fear it won't be that easy. If you create > your own VoIP client that would be a different story, and also if there > was an existing VoIP client with a decent API for plugging into the sound > stream. > <http://licensing.ttu.edu/technologies/d-0205/vocal-recognition-with-speech-signal-processing-for-voice-over-ip-and-medical-transcription>
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-26 11:49 -0400 |
| Message-ID | <l4gob2$nih$1@dont-email.me> |
| In reply to | #26436 |
On 10/26/2013 11:36 AM, Jeff Higgins wrote: >> > <http://licensing.ttu.edu/technologies/d-0205/vocal-recognition-with-speech-signal-processing-for-voice-over-ip-and-medical-transcription> > <http://www.cs.jhu.edu/~fabian/papers/oakland08.pdf>
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-26 13:10 -0400 |
| Message-ID | <l4gt2l$j4j$1@dont-email.me> |
| In reply to | #26437 |
On 10/26/2013 11:49 AM, Jeff Higgins wrote: > On 10/26/2013 11:36 AM, Jeff Higgins wrote: >>> >> <http://licensing.ttu.edu/technologies/d-0205/vocal-recognition-with-speech-signal-processing-for-voice-over-ip-and-medical-transcription> >> >> > <http://www.cs.jhu.edu/~fabian/papers/oakland08.pdf> > > <http://www.deweyhagborg.com/listeningPost/> :)
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-26 12:43 -0400 |
| Message-ID | <l4grfs$9bl$1@dont-email.me> |
| In reply to | #26430 |
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: <http://cmusphinx.sourceforge.net/sphinx4/> <http://cmusphinx.sourceforge.net/sphinx4/javadoc/edu/cmu/sphinx/tools/audio/doc-files/HowToRunAudioTool.html>
[toc] | [prev] | [next] | [standalone]
| From | Jens |
|---|---|
| Date | 2013-10-25 08:03 +0200 |
| Message-ID | <7d2k691d6ona8453naljpsmcr1c98er586@4ax.com> |
| In reply to | #26400 |
On Tue, 22 Oct 2013 08:52:45 +0530, GGolf <invalid@invalid.com> wrote: >Is there a way to read the output that the speakers produce? Richard Baldwin has many fully functional and well commented examples on Java Sound. http://www.dickbaldwin.com/tocadv.htm Scoll down to Java Sound. The subject of Java Sound is very large and can be a bit overwhelming for the uninitiated. His examples are the best I have seen on Java Sound. Another source of information is http://www.jsresources.org/faq.html Treats Java Sound to great detail. JensJ
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web