You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,15 @@ This library is built with [browserify](http://browserify.org/) and easy to use
31
31
32
32
npm install --save watson-speech
33
33
34
+
Breaking change for v0.22.0
35
+
----------------------------
36
+
37
+
The format of objects emitted in objectMode has changed from `{alternatives: [...], index: 1}` to `{results: [{alternatives: [...]}], result_index: 1}`.
38
+
This was done to enable the new `speaker_labels` feature.
39
+
There is a new `ResultExtractor` class and `recognizeMicrophone()` and `recognizeFile()` both accept a new `extract_results` option to restore the old behavior.
40
+
41
+
The format now exactly matches what the Watson Speech to Text service returns and shouldn't change again unless the Watson service changes.
42
+
34
43
35
44
API & Examples
36
45
--------------
@@ -101,6 +110,7 @@ There have been a few breaking changes in recent releases:
101
110
* Removed `SpeechToText.recognizeElement()` due to quality issues
102
111
* renamed `recognizeBlob` to `recognizeFile` to make the primary usage more apparent
103
112
* Changed `playFile` option of `recognizeBlob()` to just `play`, corrected default
113
+
* Changed format of objects emitted in objectMode to exactly match what service sends. Added `ResultExtractor` class and `extract_results` option to enable older behavior.
104
114
105
115
See [CHANGELOG.md](CHANGELOG.md) for a complete list of changes.
0 commit comments