Learn how to Make Money Online doing freelancing, Affiliate Marketing, Blogging and many more ...
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Queries and Discussion > Programming > C#

Reply  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More
 
Bookmarks Thread Tools Search this Thread Display Modes
Old 12-08-2009, 03:03 AM   #1
Light Poster
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
johnyjj2 is on a distinguished road

[Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker to


Hello!

I'd like to call from mobile phone with Skype to server with WinXP and Skype. Skype on server would be sending sound for speech recognition in application Sphinx4. In order to enable communication between Skype and Sphinx4, I need to develop plugin for Skype, i.e. so-called "3rd party application" (which would be in C#). I would do it with the use of Skype4COM, a little bit using SEHE and this: http://forum.skype.com/index.php?sho...&#entry1158301 .

In the example from link above there is a function OurCallStatus, called every time when the status of call is changed (https://developer.skype.com/Docs/Sky...b/ISkypeEvents). So as I understand (I hope I'm not mistaken) only at the beginning and end of the call. I'd like this function to change default output of Skype sound from speakers to something like "port" (after first call of function OurCallStatus). Second (last) call would restore default behaviour of Skype output. Later in my application for Sphinx4 (it would be in Java), at the beginning of main function I will need to change line "Microphone microphone = (Microphone) cm.lookup("microphone");" to such a line which would be able to receive sound from this "port" to which I would be redirecting output of Skype, instead of speakers. (The whole code of examplary file HelloWorld.java can be found in Sphinx4 here: https://sourceforge.net/projects/cmu...c.zip/download).

And my question is as follows: What can be this so-called "port"? How to implement such a "port" in C# and use in Java? I thought that WinAPI may be somehow helpful. More information about plugins for Skype here: http://forum.skype.com/index.php?sho...st=20&start=20 . Main idea of my plugin here: http://images38.fotosik.pl/230/e4cdc1e83a11a77d.jpg .

Greetings!

PS Delete spacebars in links.
johnyjj2 is offline   Reply With Quote
Old 12-08-2009, 08:44 AM   #2
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,516
Thanks: 53
Thanked 276 Times in 215 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: [Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker


Deleted.
shabbir is offline   Reply With Quote
Old 12-08-2009, 02:57 PM   #3
Light Poster
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
johnyjj2 is on a distinguished road

Re: [Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker


I don't get it. You wrote "deleted" but I still can see my topic in the list of topics (Programming and SEO Forum > Go4Expert > Queries and Discussion > Programming > C#). And it is about C# which is topic of this forum.
Greetings!
johnyjj2 is offline   Reply With Quote
Old 12-08-2009, 04:26 PM   #4
Light Poster
 
Join Date: Nov 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Todilo is on a distinguished road

Re: [Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker


perhaps he deleted the spaces in your links?
Todilo is offline   Reply With Quote
Old 12-08-2009, 05:44 PM   #5
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,516
Thanks: 53
Thanked 276 Times in 215 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: [Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker


I responded deleted to your P.S

Quote:
PS Delete spacebars in links.
shabbir is offline   Reply With Quote
Old 12-08-2009, 08:21 PM   #6
Light Poster
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
johnyjj2 is on a distinguished road

Re: [Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker


OK, so everybody knows what is deleted :-P. But coming back to the topic - does anybody have any suggestions what can be the answer?

Let me say it again. I've got [1] SKYPE ON MOBILE PHONE -> [2] SKYPE ON SERVER -> [3] MY 3RD PARTY APPLICATION ON SERVER -> [4] SPHINX4 SPEECH RECOGNITION ON SERVER. [2] and [3] can easily communicate, sending to each other Skype4COM commands. I obtain command which says "start of new call", it enters OurCallStatus function. I'd like to REDIRECT SOUND. Default: Skype sends speech to speakers. Desired: Skype sends speech to "port" so that [4] can take as input speech from this "port". And what can be this "port", how to implement it?

Greetings!
johnyjj2 is offline   Reply With Quote
Old 12-09-2009, 11:24 PM   #7
Light Poster
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
johnyjj2 is on a distinguished road

Re: [Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker


Hello!

I found that it should be possible to do it with the use of ordinary TCP socket or with IPC (Inter-Process Communication -> look at wikipedia for more info).

I think that solving my problem with the use of TCP socket shouldn't be difficult because it is rather well-known term. May I ask you for any advices, please?

Greetings!
johnyjj2 is offline   Reply With Quote
Old 12-09-2009, 11:29 PM   #8
Light Poster
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
johnyjj2 is on a distinguished road

Re: [Java][C#][Skype][WinAPI] simple plugin for Skype, sound redirection from speaker


PS Let me summarize what I want to do. I'd like to create plugin for Skype. Normally Skype sends received speech to speakers. I'd like it to send it to the other application. This other application is speech recognition engine. I thought it can be done through some kind of port. So it would be not: Skype -> speaker AND microphone -> Sphinx4. But it would be: Skype -> port -> Sphinx4 and vice versa. I am more or less familiar with creating plugins for Skype (3rd party applications).
johnyjj2 is offline   Reply With Quote
Reply  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Bookmarks

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 

All times are GMT +5.5. The time now is 05:34 AM.