botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Cortana Mike not enabled after Clicking on Adaptive Card Action Button

Open SwetalinaGitHub opened this issue 8 years ago • 4 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: Adaptive Cards 1.0.0.0
  • Active Channels: Cortana
  • Deployment Environment: Azure Bot Service, Azure App Service, Cortana

Issue Description

Mike is appearing disabled in Cortana for Android if we click on Adaptive card submit action button. It appears enabled only if we speak the button text to move to the next step.

Code Example

 public Attachment CreateAdapativeActionButton1()
 {
            AdaptiveCard card = new AdaptiveCard();
                        
            card.Actions.Add(new AdaptiveSubmitAction()
            {
                Type = "Action.Submit",
                Data = "Button A",
                Title = "Button A"                
            });
            
            Attachment attachment = new Attachment()
            {
                ContentType = AdaptiveCard.ContentType,
                Content = card
            };
            return attachment;            
 }

Activity reply = activity.CreateReply(message);
reply.Speak = message;
reply.Text = message;
reply.InputHint = InputHints.ExpectingInput;

MenuActions m = new MenuActions();
Attachment attachment = m.CreateAdapativeActionButton1();

Reproduction Steps

2. 3.

Expected Behavior

Cortana mike should be enabled if we click the action button.

Actual Results

When we click on an action button, it moves to the next step but the mike appears disabled. Even if we speak, it will not listen, hence not accept next input to process further request.

SwetalinaGitHub avatar Apr 16 '18 05:04 SwetalinaGitHub

Thank you for reporting this. It appears to be a bug in Cortana on Android. I will notify the Cortana team.

EricDahlvang avatar Apr 17 '18 19:04 EricDahlvang

hi, speak not working for adaptive cards in text block content and body title .Below are the my code. please give me suggestion

 AdaptiveCard card = new AdaptiveCard();
            card.BackgroundImage = "";
            card.Version = "1.0";
            card.Type = "AdaptiveCard";
            card.Speak = "this sample";


new TextBlock()
                                   {
                                       Text = "Applications",
                                       Speak="this on sample"
                                       Color = TextColor.Light,
                                       Size = TextSize.ExtraLarge,
                                       HorizontalAlignment = HorizontalAlignment.Center
                                       }

Kannan2018 avatar May 04 '18 13:05 Kannan2018

@Kannan2018 The .Speak property on TextBlock has been deprecated. Also, please upgrade your AdaptiveCard library to the latest: https://www.nuget.org/packages/AdaptiveCards/

EricDahlvang avatar May 07 '18 16:05 EricDahlvang

This bug has been fixed.

EricDahlvang avatar May 15 '18 00:05 EricDahlvang