microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.58k stars 1.53k forks source link

How to set properties of SpeechConfig in createCognitiveServicesSpeechServicesPonyfillFactory ? #4890

Open esperance90 opened 11 months ago

esperance90 commented 11 months ago

I have a question

Hi,

Currently, we are trying to implement a microphone widget, like in the sample below:

https://github.com/microsoft/BotFramework-WebChat/tree/main/samples/06.recomposing-ui/b.speech-ui

The problem is that as soon as the user makes a very short pause, silence is detected and recognition result sent.

I have found in Azure documentation, that it is possible to set some properties on the SpeechConfig (segmentation silence timeout, initial silence timeout):

https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-recognize-speech?pivots=programming-language-csharp#change-how-silence-is-handled

Is it possible to set them using current implementation of botframework webchat library?

Thank you, Nadia.

lakshmikanth27 commented 10 months ago

Hey did you succeed for the above ?

stevkan commented 1 month ago

@esperance90 - Are you still needing help with this issue?

Regardless, for any others looking to do the same, I've been digging into this to see if there is a way to adjust either the initial or the end silence timeouts, specifically for Cognitive Services Speech (i.e., not DirectLine Speech). I've been rooting around and testing some options, but it is not looking promising. I'm checking with some colleagues in the hopes that I've overlooked something. I'll post an update when I know more.

stephen-keefer-va commented 1 month ago

Any update on this?