如何在Azure bot的输出活动中设置语音字段?

问题描述 投票:1回答:1

在Cognitive-Services-Direct-Line-Speech-Client文档中,他们提到“如果在bot的输出活动中设置了Speak字段,则您只会听到bot的语音响应。”但是我们从哪里设置BOT的输出活动语音字段?

请参阅下面的链接。

Direct Line speech client

azure speech-recognition direct-line-botframework
1个回答
0
投票

您只需要添加您要在漫游器SendActivityAsync通话中说的内容。例如:等待stepContext.Context.SendActivityAsync(“ Hello”,“ Hello”,cancelToken:cancelledToken);第二个SendActivityAsync参数实际上是机器人要说的内容。

© www.soinside.com 2019 - 2024. All rights reserved.