[6.0.0] - 2019-12-03
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
, andsubscriptionKey
are being deprecated in favor ofcredentials
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 isfalse
. When enabled, we will no longer follow observed browser event order. We will send finalizedresult
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 frommicrosoft-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 toundefined
if the underlying recognizer from Cognitive Services SDK does not support stop/abort, in PR #81
Changed
- Bumped dependencies, in PR #73