如何在Azure bot';谁的产出活动?

如何在Azure bot';谁的产出活动?,azure,speech-recognition,direct-line-botframework,Azure,Speech Recognition,Direct Line Botframework,在Cognitive Services Direct Line Speech Client文档中,他们提到“如果设置了机器人输出活动中的Speak字段,您将只能听到机器人的语音响应。”但是我们从哪里设置机器人输出活动Speak字段呢 请参考下面的链接 您只需在bot SendActivityAsync调用中添加您想要的语音。 例如: Wait stepContext.Context.SendActivityAsync(“你好”,“你好”,cancellationToken:cancellatio

在Cognitive Services Direct Line Speech Client文档中,他们提到“如果设置了机器人输出活动中的Speak字段,您将只能听到机器人的语音响应。”但是我们从哪里设置机器人输出活动Speak字段呢

请参考下面的链接


您只需在bot SendActivityAsync调用中添加您想要的语音。 例如: Wait stepContext.Context.SendActivityAsync(“你好”,“你好”,cancellationToken:cancellationToken);
第二个SendActivityAsync参数实际上是bot将要说的内容。

您只需添加希望在bot SendActivityAsync调用中说的内容。 例如: Wait stepContext.Context.SendActivityAsync(“你好”,“你好”,cancellationToken:cancellationToken); 第二个SendActivityAsync参数实际上就是bot将要说的内容