AppTextToSpeech.TextToSpeechClient.TextToSpeechClient C# (CSharp) Method

TextToSpeechClient() public method

The constructor for the TextToSpeechClient
public TextToSpeechClient ( string manifest ) : Mycroft.App
manifest string The path to app manifest
return Mycroft.App
        public TextToSpeechClient(string manifest) : base(manifest)
        {
            speakers = new Dictionary<string, MycroftSpeaker>();
            voice = new MycroftVoice();
            WebRequest request = WebRequest.Create("http://checkip.dyndns.org/");
            using (WebResponse response = request.GetResponse())
            using (StreamReader stream = new StreamReader(response.GetResponseStream()))
            {
                ipAddress = stream.ReadToEnd();
            }

            //Search for the ip in the html
            int first = ipAddress.IndexOf("Address: ") + 9;
            int last = ipAddress.LastIndexOf("</body>");
            ipAddress = ipAddress.Substring(first, last - first);
            port = 1500;
            handler.On("APP_MANIFEST_OK", AppManifestOk);
            handler.On("APP_DEPENDENCY", AppDependency);
            handler.On("MSG_QUERY", MsgQuery);
        }
        /// <summary>