Results 1 to 1 of 1
- 12-11-2009, 11:29 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 13
- Rep Power
- 0
speech redirection from one app to other; changing input from mic to socket
Hello!
I've got Skype and Sphinx4 (speech recognition engine). Skype normally sends speech to speaker. Sphinx4 normally receives speech from microphone. I'd like to change it in such a way that output of Skype would become input of Sphinx4. In other words, I've got:
( Skype -> speaker ) AND ( microphone -> Sphinx4 )
and I'd like to have:
( Skype -> Sphinx4 )
I thought it may be impossible to do it directly so it may be better thing to do:
( Skype -> socket -> Sphinx4)
I just wonder what can be this socket. I thought about using TCP or UDP socket, in other words TCP connection on localhost.
And my question is as follows: how to let Sphinx4 to receive speech from socket, rather than from microphone?
At this moment code looks as follows:
Greetings!Java Code:// start the microphone or exit if the programm if this is not possible Microphone microphone = (Microphone) cm.lookup("microphone"); if (!microphone.startRecording()) { System.out.println("Cannot start microphone."); recognizer.deallocate(); System.exit(1); }
Similar Threads
-
Input redirection in Java
By freephoneid in forum Advanced JavaReplies: 6Last Post: 05-08-2009, 03:20 AM -
append response to the request from Socket and write to another socket
By vaibhav_singh_vs@yahoo.co in forum NetworkingReplies: 3Last Post: 04-17-2009, 07:02 PM -
redirection
By prashant in forum NetworkingReplies: 1Last Post: 02-25-2009, 02:53 PM -
redirection in jsp
By valery in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-06-2007, 08:31 PM -
stream redirection
By Ed in forum New To JavaReplies: 1Last Post: 07-02-2007, 04:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks