Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sending voice through TCP socket

1 view
Skip to first unread message

johnywyenski

unread,
Dec 12, 2009, 5:49:22 AM12/12/09
to
Hello!

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!


Submitted via EggHeadCafe - Software Developer Portal of Choice
html mailto attribute usages
http://www.eggheadcafe.com/tutorials/aspnet/ea4b454c-2b52-4af4-b623-fbd259f7d5de/html-mailto-attribute-usa.aspx

Mubashir Khan

unread,
Dec 14, 2009, 5:15:01 AM12/14/09
to
our practical experience does not recommend that TCP should be used for
streaming data like speech due to bucket overflowing. UDP is recommended for
this.

"Johny Wyenski" wrote:

> .
>

m

unread,
Dec 14, 2009, 7:28:43 PM12/14/09
to
What you want is a software audio cross connect - where the output of one
audio device (the one Skype plays to) is piped to the input of another one
(the one Sphinx reads from). This has nothing to do with network
programming and is not a simple project. You might try asking on
microsoft.public.development.device.drivers for details of the audio stack

"Johny Wyenski" wrote in message news:2009121254...@gmail.com...

0 new messages