Skip to content

[6.0.0] - 2019-12-03

Compare
Choose a tag to compare
@compulim compulim released this 03 Dec 09:05

NPM

npm install web-speech-cognitive-services@6.0.0

Bundle

<script
  crossorigin="anonymous"
  integrity="sha384-p+vce8dK8+ckVaudTLbnVh71UsDK/WtVEpMjK9yuf5O1ZErYBBEbL8QNMj0g269w"
  src="https://unpkg.com/web-speech-cognitive-services@6.0.0/umd/web-speech-cognitive-services.production.min.js"
></script>

<script
  crossorigin="anonymous"
  integrity="sha384-FDinSg51BwwaXTjCgK2K3wu1xPcK0NNxFU1rtKR4g/3GQDLCTG7KOSu5YD46YWjw"
  src="https://unpkg.com/web-speech-cognitive-services@6.0.0/umd/web-speech-cognitive-services.development.js"
></script>

Changelog

Breaking changes

Unifying options to pass credentials

authorizationToken, region, and subscriptionKey are being deprecated in favor of credentials options. credentials can be one of the following types:

  • { authorizationToken: string, region: string? }
  • { region: string?, subscriptionKey: string }
  • Promise<{ authorizationToken: string, region: string? }>
  • Promise<{ region: string?, subscriptionKey: string }>
  • () => { authorizationToken: string, region: string? }
  • () => { region: string?, subscriptionKey: string }
  • () => Promise<{ authorizationToken: string, region: string? }>
  • () => Promise<{ region: string?, subscriptionKey: string }>

If credentials is a function, it will be called just before the credentials is needed and may be called very frequently. This behavior matches the deprecating authorizationToken. The result of the call is also expected to be cached.

If region is not returned, the default value of "westus" will be used.

Fixed

  • Speech recognition: Removed extraneous finalized result event in continuous mode, by @compulim, in PR #79

Removed

  • 🔥 authorizationToken, region, and subscriptionKey are being deprecated in favor of credentials options, by @compulim in PR #80

Added

  • playground: Add delayed start to playground for testing speech recognition initiated outside of user gestures, in PR #78
  • Speech recognition: New looseEvents option, default is false. When enabled, we will no longer follow observed browser event order. We will send finalized result event as early as possible. This will not break conformance to W3C specifications. By @compulim, in PR #79
  • Speech recognition: Create ponyfill using SpeechRecognizer object from microsoft-cognitiveservices-speech-sdk, by @compulim, in PR #73
  • credentials option is added for obtaining authorization token and region, or subscription key and region, in a single object or function call, by @compulim in PR #80
  • Speech recognition: Polyfill will have abort/stop function set to undefined if the underlying recognizer from Cognitive Services SDK does not support stop/abort, in PR #81

Changed