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

Direct Line Speech Button is not visible

Open D33TW0 opened this issue 7 years ago • 5 comments

What project is affected?

The Virtual Assistant - especially The Direct Line Channel

What language is this in?

C#

What happens?

On thuseday i added the direct Line Channel to communicate with the Bot via Webchat. Now on Friday i changed nothing and the Button isnt there anymore.

What are the steps to reproduce this issue?

  1. Deploy the VA
  2. Add Direct Line Channel
  3. Wait 3 Days
  4. The Button to insert Speech is away (I think this isnt reproducable)

What were you expecting to happen?

See a Button to speak wioth the bot

Can you share any logs, error output, etc.?

/

Any screenshots or additional context?

after_after

after

D33TW0 avatar Jul 26 '19 12:07 D33TW0

Appears to be a WebChat issue as VA uses the channel like any other Bot. @danieldangler might help if you can share the webchat code your using?

darrenj avatar Jul 26 '19 15:07 darrenj

@danieldangler Have you added the webSpeechPonyfillFactory prop to Web Chat?

// Note, for simplicity we are using the subscription key on the client side; however, the client should
// always authenticate against your server to avoid exposing the subscription key to any part of your client code.
const webSpeechPonyfillFactory = await window.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({
  region: '<region>',
  subscriptionKey: <subscriptionKey>
});

window.WebChat.renderWebChat({
  directLine: window.WebChat.createDirectLine({ token }),
  webSpeechPonyfillFactory
}, document.getElementById('webchat'));

Take a look at the Cognitive Services Speech Services Web Chat sample for more details.

tdurnford avatar Jul 26 '19 16:07 tdurnford

I commented with an error that I ran into testing speech bots, but it turns out that was specific to my machine only. I tested out Mock Bot speech and everything seems to be functioning as expected (microphone button is showing up and speech interaction works)

image

corinagum avatar Jul 26 '19 16:07 corinagum

@danieldangler Did that resolve your issue?

tdurnford avatar Jul 30 '19 20:07 tdurnford

The first screenshot is from Azure Portal with Web Chat v3, and the second is from v4.

We recently bumped Web Chat in the "Test in Web Chat" blade to v4.

In Web Chat v3, we provide free trial of Bing Speech in "Test in Web Chat" blade. Since Cognitive Services team is deprecating Bing Speech around mid-October this year, we are also taking away the speech button when we bump to v4.

To use speech, please obtain your Speech Services subscription key and set it in Web Chat. You can find instructions in this sample, https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/06.c.cognitive-services-speech-services-js.

compulim avatar Aug 02 '19 07:08 compulim