Calling by skype using C#

后端 未结 1 416
星月不相逢
星月不相逢 2021-01-19 10:14

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 usern

相关标签:
1条回答
  • 2021-01-19 10:55

    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);
    
    0 讨论(0)
提交回复
热议问题