compulim / web-speech-cognitive-services

Polyfill Web Speech API with Cognitive Services Bing Speech for both speech-to-text and text-to-speech service.
https://compulim.github.io/web-speech-cognitive-services
MIT License
62 stars 18 forks source link

Setting maxalternatives #83

Closed arun7sun closed 3 years ago

arun7sun commented 4 years ago

@compulim , How to set maxalternatives for speech recognition? Is there any way

compulim commented 3 years ago

Yes, maxAlternatives is supported. You can refer to this MDN article to set the maxAlternatives property.

However, as I tested, Cognitive Services only returns 5 alternatives. So setting it > 5 will only return up to 5 results.