sending voice through TCP socket
843790Dec 12 2009 — edited Dec 17 2009Hello!
I've got the question important to me. I asked in some places but there is no answer at all. I tried reading, googling, asking and still I have some doubts. Finally I found this forum and I see there are experts here who may be able o answer my question.
I found code of simple client - server application using TCP sockets, written in C#: http://www.csharphelp.com/archives/archive127.html . It makes possible to send and receive text. What I'd like to do is to send audio from one application to the other, I don't have to have communication in the opposite direction. Can you help me, please, how to change the code so that it can send audio, not text?
In general I've got Skype and Sphinx4 (speech recognition engine). Normally Skype sends speech to the speaker and Sphinx4 receives speech from the microphone:
( Skype -> speaker ) AND ( microphone -> Sphinx4 )
I'd like to change it to:
( Skype -> Sphinx4 )
However I guess it cannot be done directly, so perhaps it should be:
( Skype -> socket -> Sphinx4 )
And now my question is how to send speech from Skype to socket. I will take care of things connected with Skype later (I am more or less familiar with creating plugins for Skype). Now what I'd like to do is only to know how to send speech instead of text in client - server application. (I guess I can send and receive audio in the same way as handling any binary data.)
Hoping that you can help me,
regards!
PS I asked about part connected with Sphinx4 (which is written in Java) on this forum: http://forums.sun.com/thread.jspa?threadID=5419806&tstart=0 but there are no answers :-(.