Skip to content

Releases: compulim/web-speech-cognitive-services

[7.1.2] - 2022-09-27

[7.1.1] - 2021-07-20

[7.1.0] - 2021-02-01

01 Feb 21:14
Compare
Choose a tag to compare

[7.0.1] - 2020-08-06

06 Aug 23:13
Compare
Choose a tag to compare

[7.0.0] - 2020-05-27

27 May 20:38
Compare
Choose a tag to compare

Breaking changes

  • To enable developers to select their version of Cognitive Services Speech SDK and use newer features, we are moving microsoft-cognitiveservices-speech-sdk to peerDependencies.
    • When you install web-speech-cognitive-services, you will also need to install a compatible version of microsoft-cognitiveservices-speech-sdk.

Changed

[6.3.0] - 2020-03-28

28 Mar 07:16
Compare
Choose a tag to compare

[6.2.0] - 2020-03-27

27 Mar 19:04
Compare
Choose a tag to compare

Breaking changes

  • Temporarily reverting breaking changes by reintroducing Bing Speech and fetchAuthorizationToken, by @compulim in PR #92.

[6.1.0] - 2020-03-26

26 Mar 08:04
Compare
Choose a tag to compare

Breaking changes

Added

Removed

Changed

[6.0.0] - 2019-12-03

03 Dec 09:05
Compare
Choose a tag to compare

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

[5.0.1] - 2019-10-25

25 Oct 20:21
Compare
Choose a tag to compare

NPM

npm install web-speech-cognitive-services@5.0.1

Bundle

<script
  crossorigin="anonymous"
  integrity="sha384-P+Oqr4qjejIgT3DIhyBMMVk4bjp1V037+DDjEAjnFKJTkWvcthxbix3QtZk+tKlf"
  src="https://unpkg.com/web-speech-cognitive-services@5.0.1/umd/web-speech-cognitive-services.production.min.js"
></script>

<script
  crossorigin="anonymous"
  integrity="sha384-DWOFKFk0KHdy/8DSwihYyP5EVrMDhfsmwo39fU0T1KBRTK7gsOsz7Ar1qcMaEidP"
  src="https://unpkg.com/web-speech-cognitive-services@5.0.1/umd/web-speech-cognitive-services.development.js"
></script>

Changelog

Changed

  • Fixed dependences in PR #76
    • bundle package
      • dependencies: Moved eslint to development dependencies
    • component package
      • peerDependencies: No longer requires react
      • dependencies
        • Moved eslint to development dependencies
        • Removed event-target-shim because incompatibility with ES5
      • devDependencies: Removed react
    • Removed import '@babel/runtime' explicitly