Botframework MS机器人模拟器-保持麦克风打开?
是否有人知道一种方法,可以强制机器人模拟器麦克风始终保持打开(保持收听?),以便我可以与机器人对话(而不必一直按右下角的麦克风图标?我不确定这在模拟器中的表现如何,但您可能希望尝试将消息的Botframework MS机器人模拟器-保持麦克风打开?,botframework,Botframework,是否有人知道一种方法,可以强制机器人模拟器麦克风始终保持打开(保持收听?),以便我可以与机器人对话(而不必一直按右下角的麦克风图标?我不确定这在模拟器中的表现如何,但您可能希望尝试将消息的inputInt设置为ExpectingInput Per(它们来自Node.js版本,但也可以在C#中使用) 期望输入 要指示您的机器人正在等待用户的响应,请将消息的输入提示设置为builder.InputHint.expectingInput。在许多通道上,这将导致启用客户端的输入框并打开麦克风。下面的代码
inputInt
设置为ExpectingInput
Per(它们来自Node.js
版本,但也可以在C#
中使用)
期望输入
要指示您的机器人正在等待用户的响应,请将消息的输入提示设置为builder.InputHint.expectingInput
。在许多通道上,这将导致启用客户端的输入框并打开麦克风。下面的代码示例创建一个提示,指示bot正在等待用户输入
builder.Prompts.text(session, 'This is the text that will be displayed.', {
speak: 'This is the text that will be spoken initially.',
retrySpeak: 'This is the text that is spoken after waiting a while for user input.',
inputHint: builder.InputHint.expectingInput
});
我不确定这在Emulator中的行为,但您可能希望尝试将消息的
inputInt
设置为ExpectingInput
Per(它们来自Node.js
版本,但也可以在C#
中使用)
期望输入
要指示您的机器人正在等待用户的响应,请将消息的输入提示设置为builder.InputHint.expectingInput
。在许多通道上,这将导致启用客户端的输入框并打开麦克风。下面的代码示例创建一个提示,指示bot正在等待用户输入
builder.Prompts.text(session, 'This is the text that will be displayed.', {
speak: 'This is the text that will be spoken initially.',
retrySpeak: 'This is the text that is spoken after waiting a while for user input.',
inputHint: builder.InputHint.expectingInput
});