Know a good article or link that we're missing? Submit it!

WEB-Services / SOAP

Moderators: None (Apply to moderate this forum)
Number of threads: 79
Number of posts: 99

This Forum Only
Post New Thread

Report
redirecting Skype output speech to TCP socket and receiving in other a Posted by johnyjj2 on 9 Dec 2009 at 8:20 PM
Hello!

SUMMARY:

I'd like to create such a system: [1] Skype on mobile phone -> [2] Skype on server -> [3] plugin to Skype (3rd party application) -> [4] speech recognition Sphinx4. Normally Skype outputs speech to the speaker, normal behaviour of Sphinx4 is to receive speech from microphone. I need to change it so that Skype would redirect its output sound to TCP socket and Sphinx4 would receive it from this TCP socket.

I think this plugin would be server with two children - Skype and Sphinx. I would write this plugin in C#. Can anybody give me, please, any suggestions how to do it? (Examplary codes for other languages than C# would also be useful).

DETAILS:

[2] and [3] can easily communicate with each other by sending Skype4COM commands. When the new call is established on Skype (in other words when I call from [1] to [2] and [2] automatically answers this call), plugin [3] enters OurCallStatus function. And inside this function I need to change default output of Skype sound which is set to speakers and make it to be "port".

So there must be Skype -> TCP socket (on localhost) -> Sphinx4. I also thought about other approaches. Those are: IPC (Inter-Process Communication) and maybe some kind of usage of WinAPI.

Why do I have to use TCP socket (Skype -> TCP socket -> Spinx4)? Because I guess it may be impossible or difficult to forward it directly. I need to change this line in code of Sphinx4 application "Microphone microphone = (Microphone) cm.lookup("microphone");" to such a line which would be able to receive speech from "port". I cannot simply save the whole speech from Skype to mp3/wav file and then to open this mp3/wav file in Sphinx4 because it must be done in real time.

Greetings!



 
Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2010 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
bootstrapLabs Logo A BootstrapLabs project.