Exemplo n.º 1
0
        public HelloModule()
        {
            Get("/hello", args =>
            {
                var name = this.Request.Query["name"];
                CallWatson.SynthetizeText($"Olá {name} seja bem vindo à Disruptiv", "pt-BR_IsabelaVoice");
                AudioUtils.PlayAudio();

                return("Service Status OK");
            });
        }
Exemplo n.º 2
0
        private void WriteInfo(RootObject objRootObject)
        {
            Console.WriteLine(objRootObject.eventName);
            Console.WriteLine(objRootObject.eventData.status);
            Console.WriteLine(objRootObject.eventData.branch);
            Console.WriteLine(objRootObject.eventData.duration);
            Console.WriteLine(objRootObject.eventData.repositoryName);
            Console.WriteLine(objRootObject.eventData.passed);
            Console.WriteLine(objRootObject.eventData.commitAuthor);

            CallWatson.SynthetizeText(
                $"A new build was completed, repository {objRootObject.eventData.repositoryName}, Status {objRootObject.eventData.status}, author from this build is {objRootObject.eventData.commitAuthor}");

            AudioUtils.PlayAudio();
        }
Exemplo n.º 3
0
 public void SynthetizeText()
 {
     CallWatson.SynthetizeText("Seja bem vindo Thiago", "pt-BR_IsabelaVoice");
 }