Exemplo n.º 1
0
        private async Task SendSTTResultToUser(string text, IEnumerable <Participant> participants)
        {
            var to   = participants.Single(x => x.Originator);
            var from = participants.First(x => !x.Originator);

            var jsonSpeech = JsonConvert.DeserializeObject <BingSpeechResponse>(text);

            var g = await this.takeAction(jsonSpeech.DisplayText);

            await AgentListener.Resume(to.Identity, to.DisplayName, from.Identity, from.DisplayName, to.Identity, g);
        }