Microphone Turns off After a RetryPrompt Call
See original GitHub issueScreenshots
Version
Webchat: V4.8 CDN: https://cdn.botframework.com/botframework-webchat/latest/webchat.js Botframework: V4
Describe the bug
When a prompt option has not been met e.g. Yes/No a RetryPrompt call is automatically raised by the bot framework.
The RetryPrompt message is shown on the screen and spoken by the bot.
However, the mic is automatically deactivated which forces the users to manually click on the mic icon to turn it on.
Bot code snippet:
await stepContext.Context.SendActivityAsync(“Are you sure about it?😃”, “Are you sure about it?”, cancellationToken: cancellationToken);
return await stepContext.PromptAsync(nameof(ChoicePrompt),
new PromptOptions
{
Prompt = null,
RetryPrompt = MessageFactory.Text(“Try it again please”,“Try it again please”),
Choices = new[]
{
new Choice {Value = “Yes”, Synonyms = new List<string> {“sim”}},
new Choice {Value = “No”, Synonyms = new List<string> {“nao”}}
}.ToList(),
Style = ListStyle.Auto
});
Steps to reproduce
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Expected behavior
The bot should show and speak a reply prompt message but keep the mic on for user voice reply.
Additional context
[Bug]
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
Spot on Corina! Working perfectly now. Thanks a million for your help! Take care.
Hi @corinagum. Just wondering if you have any news about it. Please do not hesitate to reach me if you need further info about the issue. Thx!