BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

In adaptive card speak property is not working

Open saikiran521 opened this issue 6 years ago • 3 comments

Using adaptive cards 1.0 added speak tag before the body as below

{ "type": "AdaptiveCard", "version": "1.0", "speak":"testing speech", "body": [ { }] }

while returning from the dialog passing ssml as below

var response = MessageFactory.Attachment(attachment, ssml: card.Speak, inputHint: InputHints.ExpectingInput); await stepContext.Context.SendActivityAsync(response);

but not able to hear the text when adaptive card in webchat.

Also getting issue with while speaking submit action goes with null value. Please help me on how to submit adaptive card with voice.

Please help me in this if anyone faced same issue and got the solution.

Thanks in advance

saikiran521 avatar Apr 01 '20 09:04 saikiran521

Hi @saikiran521
Please try setting the speak property to true in your channelData as follows: response.ChannelData = new{speak=true}; Please let me know if it works for you.

manish-95 avatar Apr 01 '20 12:04 manish-95

This maybe related to known problem that the WebChat bot will only use synthesized voices if you speak to it first. See #2211 for proposed solution.

jbgh2 avatar Apr 01 '20 17:04 jbgh2

@jbgh2 We've a design and spec, and the engineering workstream looks to land in early July (as part of our R10 release).

cleemullins avatar Apr 01 '20 18:04 cleemullins