Building a language translation bot using Skype and C#

Posted by Anuraj on Tuesday, February 5, 2013 Reading time :1 minute

.Net .Net 4.0 CodeProject Windows Forms

In Google talk, there was some bot service available which will help to translate from one language to another. You can implement similar service using Skype with the help of Skype4COM.dll. In this implementation for language translation, the Bing soap API is used.

Skype4COM is a Windows based COM DLL which acts as a shim between the text based Skype Desktop API and 3rd party programs / applications. The Skype4COM.dll and developer documentation available to download from here .

You need download the Skype4COM.dll and you need to register it in the system to use it. You can register any COM dll using command regsvr32 from command prompt. You need administrator privilege to do this. If you didn’t registered it properly you may get some COMException while running the applications.

You can add reference of Skype4COM.dll from Add Reference > COM tab.

And here is the implementation.

private Skype _skype;
public frmSkypeBot()

    _skype = new Skype();
    _skype.Attach(8, false);
    _skype.MessageStatus += SkypeMessageStatus;

private void SkypeMessageStatus(ChatMessage pMessage, 
    TChatMessageStatus Status)
        if (Status == TChatMessageStatus.cmsRead)
    catch (Exception ex)

While launching the application, you will get a prompt like this

Skype - Application permission dialog

You need to click on the allow access button, otherwise application won’t work.

Skype bot running on my system.

Skype bot - English to Hindi

The Translate method, translate from English to Hindi using Bing API. Bing API doesn’t support translation to Malayalam from English. So Hindi language is used.

Happy Programming.

What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.

Did you like this article? Share it with your friends

Facebook Twitter Google+ LinkedIn Reddit StumbleUpon

BMC logoBuy me a coffee

Copyright © 2019 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub