question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The adaptive cards are not getting spoken. The article that I am following is: https://github.com/microsoft/BotFramework-WebChat/blob/master/docs/SPEECH.md

See original GitHub issue

🚨 The issue tracker is not for implementation questions 🚨

[Question]

I have below code snippet added in my DirectLine HTML:

    window.WebChat.renderWebChat(
        {
            directLine: directLine,
            userID: user_unique_id, //random guid is acceptable		
            locale: input_lang,
            store: store,
            styleOptions: styleOptions,
            selectVoice: (voices, activity) => {
                if (input_lang === 'en-GB') {
                    return voices.find(({ name }) => /RyanNeural/iu.test(name));
                } else {
                    return voices.find(({ name }) => /Jessa24kRUS/iu.test(name));
                }
            },
            webSpeechPonyfillFactory
        },
        document.getElementById("webchat")
    );

    document.querySelector("#webchat > *").focus();
}

It should ideally also have text-to-speech enabled on BOT and should read out the adaptive cards. This is actually not working. Any help will be appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alishajain7commented, Dec 1, 2020

@corinagum @v-kydela Thank you for the input. Indeed there was some formatting issue. I have updated my JSON, and the adaptive cards are now getting spoken. Thanks for all the input. Closing the ticket.

0reactions
v-kydelacommented, Nov 30, 2020

Sure, @corinagum

@alishajain7 - Go ahead and try Corina’s JSON to see if it works for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Adaptive Card errors in MS Teams "We're sorry, thi...
I have a very simple Adaptive card posting to Teams on Planner Task completion. It was working before I went on holiday and...
Read more >
Action.Execute - Schema Explorer | Adaptive Cards
Once most Host apps have updated to the latest version we will update the samples accordingly. Action.Execute. Gathers input fields, merges with optional...
Read more >
Microsoft Adaptive Cards – the ultimate guide
Microsoft Adaptive Cards – the ultimate guide. Find out all details about this awesome solution from Microsoft, learn how and when to use ......
Read more >
Building with Adaptive Cards? 7 things you need to consider ...
For the first couple years, whether to make an Adaptive Card was a question for people developing with Bot Framework. But recently they...
Read more >
Send Adaptive Cards and get responses in Microsoft Teams ...
In the Power Automate flow, just add the action named “Post adaptive card and wait for a response” as below: Use this action...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found