web-speech-cognitive-services
Advanced tools
Changelog
[6.1.0] - 2020-03-26
fetchAuthorizationToken
is removed, please refer to this documentation on how to get an access token.~fetchAuthorizationToken
is removed, by @compulim, in PR #89.~p-defer-es5
instead of adopted createDeferred.js
, in PR #89.Changelog
[6.0.0] - 2019-12-03
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.
result
event in continuous mode, by @compulim, in PR #79authorizationToken
, region
, and subscriptionKey
are being deprecated in favor of credentials
options, by @compulim in PR #80playground
: Add delayed start to playground for testing speech recognition initiated outside of user gestures, in PR #78looseEvents
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 #79SpeechRecognizer
object from microsoft-cognitiveservices-speech-sdk
, by @compulim, in PR #73credentials
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 #80abort
/stop
function set to undefined
if the underlying recognizer from Cognitive Services SDK does not support stop/abort, in PR #81