如何在语音中获取Microsoft Bot欢迎消息?

时间:2018-10-25 12:23:56

标签: botframework chatbot

我希望机器人说出我的欢迎信息。我已经在邮件控制器中使用了此代码,但这无济于事-

 else if (message.Type == ActivityTypes.ConversationUpdate)
            {
                if (message.MembersAdded.Any(o => o.Id == message.Recipient.Id))
                {
                    ConnectorClient client = new ConnectorClient(new Uri(message.ServiceUrl));

                    var reply = message.CreateReply();


                    reply.Text = "Hey there! I provide information on weather, stock and tableau. Ask me anything and I will try to answer";
                    reply.Speak = "Hey there! I provide information on weather, stock and tableau. Ask me anything and I will try to answer";
                    reply.InputHint = InputHints.AcceptingInput;
                    await client.Conversations.ReplyToActivityAsync(reply);
                }
            }

0 个答案:

没有答案