Hello!
I've got Skype. When Skype receives a call, it sends speech to speakers. I'd like it to send it to the other application. So there must be something like "port" to which I can redirect speech from Skype and then to receive this speech in other application from this "port". What can be this port and how to implement it?
So you know what I don't know. But what I have is: [1] Skype on mobile phone, [2] Skype on server, [3] My 3rd party application on server (plugin to Skype), [4] Speech recognition Sphinx4 on server. [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".
Why do I have to use "port" (Skype -> "port" -> 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.
Why do I post it on this forum? Because I thought this "port" may be somehow usage of one of those thousand ports numbers (like 80 for http and so on) on localhost. The other approach which I thought about is usage of WinAPI. However I don't know if any of these two approaches is doable and how to do it, if it is doable.
Greetings!
I've got Skype. When Skype receives a call, it sends speech to speakers. I'd like it to send it to the other application. So there must be something like "port" to which I can redirect speech from Skype and then to receive this speech in other application from this "port". What can be this port and how to implement it?
So you know what I don't know. But what I have is: [1] Skype on mobile phone, [2] Skype on server, [3] My 3rd party application on server (plugin to Skype), [4] Speech recognition Sphinx4 on server. [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".
Why do I have to use "port" (Skype -> "port" -> 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.
Why do I post it on this forum? Because I thought this "port" may be somehow usage of one of those thousand ports numbers (like 80 for http and so on) on localhost. The other approach which I thought about is usage of WinAPI. However I don't know if any of these two approaches is doable and how to do it, if it is doable.
Greetings!