This article focuses on how to make Cortana speak PromptDialog. It's quite simple, we have to specify message spoken by Cortana in PromptOption.speak and pass PromptOption to PromptDialog.Confirm() or PropmtDialog.Choice.
Prompt Choice
Prompt Confirm
If you don't want show option on the canvas you can empty PromptOption.options field from the code.
Reference:
https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-text-to-speech
https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-cortana-skill
https://docs.microsoft.com/en-us/dotnet/api/microsoft.bot.builder.dialogs.promptoptionswithsynonyms-1.-ctor?view=botbuilder-3.11.0
留言
張貼留言