Google Api Translator in Urdu and text to speech RRS feed

  • Question

  • Hi Friends,

    Please I need help, My question is by using google api in c# winform can translate english into urdu, once text its translated in urdu

    again by using google API can call text to speech which will be in Urdu,  all the above we can perform in c# winform I am seeking for help how I can call google api in c# winform furthermore  is it free or some paid subscription required

    thank you


    Sunday, August 25, 2019 9:35 AM

All replies

  • Hello,

    Please present your code for the current effort on this and have you worked with the documentation

    Also Google recommends posting on StackOverflow using the following tag [google-api-dotnet-client]

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Sunday, August 25, 2019 12:17 PM
  • Presently following code I am using but its not working properly, if you any sample code please help me

    public String Translate(String word)
        var toLanguage = "en";//English
        var fromLanguage = "de";//Deutsch
        var url = $"{fromLanguage}&tl={toLanguage}&dt=t&q={HttpUtility.UrlEncode(word)}";
        var webClient = new WebClient
            Encoding = System.Text.Encoding.UTF8
        var result = webClient.DownloadString(url);
            result = result.Substring(4, result.IndexOf("\"", 4, StringComparison.Ordinal) - 4);
            return result;
            return "Error";


    Sunday, August 25, 2019 3:45 PM