Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling by skype using C#

I want to develop an assistant software for blind people like Jarvis. It is a C# form application. I need to connect my C# project with Skype API so as to call to some username by using Skype. When I command by using Call John, it responds by calling to John by Skype.

Can someone show me some snippets of code that'll help towards this?

like image 657
senye Avatar asked Mar 17 '23 15:03

senye


1 Answers

To start the Skype call, Process.Start("callto:john");. You can concatenate "callto:" with the name of the contact.

Look at MSDN Documentation on Speech Recognition in C# for writing the code that triggers the call event described above. As seen in the example below copied from documentation, you can listen on a a few words-- in your case, "call".

Choices colors = new Choices();
colors.Add(new string[] {"red", "green", "blue"});

GrammarBuilder gb = new GrammarBuilder();
gb.Append(colors);

// Create the Grammar instance.
Grammar g = new Grammar(gb);

UPDATE I'd suggest using Skype4comLib. Here's an example!

Skype skype;
skype = new SKYPE4COMLib.Skype();
string SkypeID = "john";
Call call = skype.PlaceCall(SkypeID);
like image 71
Tejas Manohar Avatar answered Mar 31 '23 19:03

Tejas Manohar