Closed Monomoy88 closed 5 years ago
Could you provide the json for your Adaptive Card for testing?
Here is one sample Adaptive card
{
"type": "AdaptiveCard",
"speak": "<s>Adaptive Card Text</s>",
"body": [
{
"type": "Container",
"separator": true,
"style": "default",
"items": [
{
"type": "TextBlock",
"horizontalAlignment": "Left",
"size": "Medium",
"weight": "Bolder",
"color": "Accent",
"text": "Adaptive Card Title",
"wrap": true
}
]
},
{
"type": "Container",
"separator": true,
"style": "default",
"items": [
{
"type": "Image",
"altText": "",
"url": "https://cdn.cnn.com/cnnnext/dam/assets/190121090951-04-blood-moon-global-01212019-exlarge-169.jpg"
},
{
"type": "TextBlock",
"weight": "Lighter",
"text": "- Sky gazers were treated to a rare lunar eclipse known as a super blood wolf moon on Sunday night, in which sunlight passing through Earth's atmosphere lit the celestial body in a dramatic fashion and turned it red.\n- Watchers in North and South America, parts of Europe and western Africa, who were lucky enough to have clear skies, saw a total lunar eclipse -- but eastern Africa and Asia observed a partial eclipse.\n- Hundreds of people came out late on Sunday night or early Monday morning to witness the event, capturing images of the super blood wolf moon and sharing it on Twitter.",
"wrap": true,
"horizontalAlignment": "Left",
"size": "Medium"
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
@Monomoy88 is correct. Web Chat is not speaking the speak
property in an Adaptive Card. I was able to repro his issue using the JSON he provided and with an Adaptive Card that only has the speak
property set.
{
"type": "AdaptiveCard",
"version": "1.2",
"body": [],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"speak": "The bot should speak this."
}
In my web app I'm using hybrid speech model as per the webchat sample code. If adapive card has a speak field & I'm comunicating with bot using microphone then the bot is not speaking when the card is coming as response. To get rid of this I've specified the same text in place of ssml in my Bot code as shown below:
Now the bot is speaking same text twice as it has generated the Webchat have generated ssml as follows while sending it to cognitive speech:
So either the bot is not speaking at all or speaking twice the same text for Adaptive card. How to get rid of this problem?