Releases: compulim/web-speech-cognitive-services
Releases · compulim/web-speech-cognitive-services
[5.0.1] - 2019-10-25
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
bundlepackagedependencies: Movedeslintto development dependencies
componentpackagepeerDependencies: No longer requiresreactdependencies- Moved
eslintto development dependencies - Removed
event-target-shimbecause incompatibility with ES5
- Moved
devDependencies: Removedreact
- Removed
import '@babel/runtime'explicitly
[5.0.0] - 2019-10-23
NPM
npm install web-speech-cognitive-services@5.0.0
Bundle
<script
crossorigin="anonymous"
integrity="sha384-M+Xdt3ULWuUJyn8baSyg1junQEfbnb3lMAU5F/Wma+enbpfPtTgzwlfzL27Cb8nk"
src="https://unpkg.com/web-speech-cognitive-services@5.0.0/umd/web-speech-cognitive-services.production.min.js"
></script>
<script
crossorigin="anonymous"
integrity="sha384-ALDNJ5kNjxEnJUSf0FKfeTMrMUgjeqVKMMIqg+C1DZQOfuNWc+JWQVpCn5ui3zcJ"
src="https://unpkg.com/web-speech-cognitive-services@5.0.0/umd/web-speech-cognitive-services.development.js"
></script>Changelog
Breaking changes
- Instead of stopping
AudioContextafter all pending utterances are finished, theAudioContextis now persisted. If this is not desirable in your application and would like to control the lifetime ofAudioContextobject, please create your own instance and pass it as an option namedaudioContextwhen creating the ponyfill createSpeechServicesPonyfillfunction is no longer asynchronous- Immediate after the ponyfill is created, we will fetch voice list from the services and emit
voiceschangedevent on completion
- Immediate after the ponyfill is created, we will fetch voice list from the services and emit
Added
- Speech recognition: Fix #23 and #24, support
audiostart/audioend/soundstart/soundendevent, in PR #33 - Speech recognition: Fix #25 and #26, support true
abortandstopfunction, in PR #33 - Speech recognition: Fix #29, support continuous mode, in PR #33
- Quirks: in continuous mode, calling
stopin-betweenrecognizingandrecognizedwill not emit finalresultevent
- Quirks: in continuous mode, calling
- Speech recognition: New
audioConfigoption to override the defaultAudioConfig.fromDefaultMicrophoneInput, in PR #33 - Speech synthesis: Fix #32, fetch voices from services, in PR #35
- Speech synthesis: Fix #34, in PR #36 and PR #44
- Support user-controlled
AudioContextobject to be passed as an option namedaudioContext - If no
audioContextoption is passed, will create a newAudioContextobject on first synthesis
- Support user-controlled
- Speech synthesis: If an empty utterance is being synthesized, will play an local empty audio clip, in PR #36
- Speech recognition: Fix #30, support dynamic phrases, in PR #37
- Pass it as an array to
SpeechRecognition.grammars.phrases
- Pass it as an array to
- Speech recognition: Fix #31, support reference grammars, in PR #37
- When creating the ponyfill, pass it as an array to
referenceGrammarsoptions
- When creating the ponyfill, pass it as an array to
- Speech recognition: Fix #27, support custom speech, in PR #41
- Use option
speechRecognitionEndpointId
- Use option
- Speech synthesis: Fix #28 and #62, support custom voice font, in PR #41 and PR #67
- Use option
speechSynthesisDeploymentId - Voice list is only fetch when using subscription key
- Use option
- Speech synthesis: Fix #48, support output format through
outputFormatoption, in PR #49 *: Fix #47, addenableTelemetryoption for disabling collecting telemetry data in Speech SDK, in PR #51 and PR #66*: Fix #53, added ESLint, in PR #54- Speech synthesis: Fix #39, support SSML utterance, in PR #57
- Speech recognition: Fix #59, support
stop()function by finalizing partial speech, in PR #60 - Fix #67, add warning when using subscription key instead of authorization token, in PR #69
- Fix #70, fetch authorization token before every synthesis, in PR #71
Changed
- Bumped dependencies, in PR #20
- @babel/cli@^7.5.5
- @babel/core@^7.5.5
- @babel/plugin-proposal-object-rest-spread@^7.5.5
- @babel/plugin-transform-runtime@^7.5.5
- @babel/preset-env@^7.5.5
- @babel/runtime@^7.5.5
- babel-jest@^24.8.0
- babel-plugin-transform-inline-environment-variables@^0.4.3
- jest@^24.8.0
- memoize-one@^5.0.5
- rimraf@^2.6.3
- simple-update-in@^2.1.0
- Added version number as
<meta>tag, in PR #20 - Added bundle distribution thru https://unpkg.com/web-speech-cognitive-services@latest/umd/, in PR #21
- Bumped to microsoft-cognitiveservices-speech-sdk@1.6.0, in PR #22
- Fix #55 and #63. Moves to WHATWG
EventTargetinterface, in PR #56 and PR #64 - Instead of including
event-target-shim@5.0.1, we are adopting its source code, in PR #72- This is because the original package requires browser to support rest/spread operators
Fixed
[4.0.0] - 2018-12-10
Added
- New playground for better debuggability
- Support of Speech Services SDK, with automated unit tests for speech recognition
- See
SPEC-RECOGNITION.mdandSPEC-SYNTHESIS.mdfor quirks
- See
- Speech recognition: Support
stopon Speech Services - Speech synthesis: Support
pauseandresume(withpauseandresumeevent) - Speech synthesis: Support
speakingproperty
Changed
- Ponyfill are now constructed based on options (authorization token, region, and subscription key)
- A new set of ponyfill will be created every time an option has changed
Fixed
- Fix #13 Speech recognition:
SpeechRecognitionResultshould be iterable
[3.0.0] - 2018-10-31
Added
- Speech Synthesis: Will async fetch speech token instead of throwing exception
Changed
- Use
@babel/runtimeand@babel/plugin-tranform-runtime, in favor ofbabel-polyfill - Better error handling on
nulltoken - Updated voice list from https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/supported-languages
- Reliability around cancelling a playing utterance
- Instead of shutting down the
AudioContext, we will stop theAudioBufferSourceNodefor a graceful stop
- Instead of shutting down the
- Simplify speech token authorization
recognition.fetchToken = async () => return await 'your subscription key';recognition.fetchToken = createFetchTokenUsingSubscriptionKey('your subscription key');fetchTokenwill be called every time a token is required, implementor should cache the token as needed
- Bump to
@babel/core@7.1.2andjest@^23.6.0 - Bump to
react-scripts@2.0.4 - Publish
/packages/component/instead of/ - Bump to
event-as-promise@1.0.5
[2.1.0] - 2018-07-09
Added
- Speech priming via custom
SpeechGrammarList
[2.0.0] - 2018-07-09
Added
- SpeechSynthesis polyfill with Cognitive Services
Changed
- Removed
CognitiveServicesprefix- Renamed
CognitiveServicesSpeechGrammarListtoSpeechGrammarList - Renamed
CognitiveServicesSpeechRecognitiontoSpeechRecognition - Removed default export, now must use
import { SpeechRecognition } from 'web-speech-cognitive-services';
- Renamed
- Speech Recognition: changed speech token authorization
recognition.speechToken = new SubscriptionKey('your subscription key');
[1.0.0] - 2018-06-29
Added
- Initial release
- SpeechRecognition polyfill with Cognitive Services