Skip to content

Commit 0621fdc

Browse files
committed
Moving changelog to standalone file, prep for v0.16
1 parent 967c606 commit 0621fdc

File tree

3 files changed

+59
-58
lines changed

3 files changed

+59
-58
lines changed

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Changelog
2+
3+
### v0.16
4+
* Added STT.getModels() method to fetch the list of available voice models
5+
* Added support for STT profanity_filter & documented keywords and words_alternatives options
6+
7+
### v0.15
8+
* Removed `SpeechToText.recognizeElement()` due to quality issues
9+
* Added `options.element` to TextToSpeech.synthesize() to support playing through exiting elements
10+
* Fixed a couple of bugs in the TimingStream
11+
12+
### v0.14
13+
* Moved getUserMedia shim to a [standalone library](https://www.npmjs.com/package/get-user-media-promise)
14+
* added a python token server example
15+
16+
### v0.13
17+
* Fixed bug where `continuous: false` didn't close the microphone at end of recognition
18+
* Added `keepMic` option to `recognizeMicrophone()` to prevent multiple permission popups in firefox
19+
20+
### v0.12
21+
* Added `autoPlay` option to `synthesize()`
22+
* Added proper parameter filtering to `synthesize()`
23+
24+
### v0.11
25+
* renamed `recognizeBlob` to `recognizeFile` to make the primary usage more apparent
26+
* Added support for `<input>` and `<textarea>` elements when using the `targetElement` option (or a `WritableElementStream`)
27+
* For objectMode, changed defaults for `word_confidence` to `false`, `alternatives` to `1`, and `timing` to off unless required for `realtime` option.
28+
* Fixed bug with calling `.promise()` on `objectMode` streams
29+
* Fixed bug with calling `.promise()` on `recognizeFile({play: true})`
30+
31+
### v0.10
32+
* Added ability to write text directly to targetElement, updated examples to use this
33+
* converted examples from jQuery to vanilla JS (w/ fetch pollyfill when necessary)
34+
* significantly improved JSDoc
35+
36+
### v0.9
37+
* Added basic text to speech support
38+
39+
### v0.8
40+
* deprecated `result` events in favor of `objectMode`.
41+
* renamed the `autoplay` option to `autoPlay` on `recognizeElement()` (capital P)
42+
43+
### v0.7
44+
* Changed `playFile` option of `recognizeBlob()` to just `play`, corrected default
45+
* Added `options.format=true` to `recognize*()` to pipe text through a FormatStream
46+
* Added `options.realtime=options.play` to `recognizeBlob()` to automatically pipe results through a TimingStream when playing locally
47+
* Added `close` and `end` events to TimingStream
48+
* Added `delay` option to `TimingStream`
49+
* Moved compiled binary to GitHub Releases (in addition to uncompiled source on npm).
50+
* Misc. doc and internal improvements

README.md

Lines changed: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -94,60 +94,22 @@ Pipes results through a [TimingStream] by if `options.play=true`, set `options.r
9494
Pipes results through a [FormatStream] by default, set `options.format=false` to disable.
9595

9696

97-
## Changelog
97+
## Changes
9898

99-
### v0.15
100-
* Removed `SpeechToText.recognizeElement()` due to quality issues
101-
* Added `options.element` to TextToSpeech.synthesize() to support playing through exiting elements
102-
* Fixed a couple of bugs in the TimingStream
103-
* Added support for STT profanity_filter & documented keywords and words_alternatives options.
104-
105-
### v0.14
106-
* Moved getUserMedia shim to a [standalone library](https://www.npmjs.com/package/get-user-media-promise)
107-
* added a python token server example
108-
109-
### v0.13
110-
* Fixed bug where `continuous: false` didn't close the microphone at end of recognition
111-
* Added `keepMic` option to `recognizeMicrophone()` to prevent multiple permission popups in firefox
99+
There have been a few breaking changes in recent releases:
112100

113-
### v0.12
114-
* Added `autoPlay` option to `synthesize()`
115-
* Added proper parameter filtering to `synthesize()`
116-
117-
### v0.11
101+
* Removed `SpeechToText.recognizeElement()` due to quality issues
118102
* renamed `recognizeBlob` to `recognizeFile` to make the primary usage more apparent
119-
* Added support for `<input>` and `<textarea>` elements when using the `targetElement` option (or a `WritableElementStream`)
120-
* For objectMode, changed defaults for `word_confidence` to `false`, `alternatives` to `1`, and `timing` to off unless required for `realtime` option.
121-
* Fixed bug with calling `.promise()` on `objectMode` streams
122-
* Fixed bug with calling `.promise()` on `recognizeFile({play: true})`
123-
124-
### v0.10
125-
* Added ability to write text directly to targetElement, updated examples to use this
126-
* converted examples from jQuery to vanilla JS (w/ fetch pollyfill when necessary)
127-
* significantly improved JSDoc
128-
129-
### v0.9
130-
* Added basic text to speech support
131-
132-
### v0.8
133-
* deprecated `result` events in favor of `objectMode`.
134-
* renamed the `autoplay` option to `autoPlay` on `recognizeElement()` (capital P)
135-
136-
### v0.7
137103
* Changed `playFile` option of `recognizeBlob()` to just `play`, corrected default
138-
* Added `options.format=true` to `recognize*()` to pipe text through a FormatStream
139-
* Added `options.realtime=options.play` to `recognizeBlob()` to automatically pipe results through a TimingStream when playing locally
140-
* Added `close` and `end` events to TimingStream
141-
* Added `delay` option to `TimingStream`
142-
* Moved compiled binary to GitHub Releases (in addition to uncompiled source on npm).
143-
* Misc. doc and internal improvements
104+
105+
See [CHANGELOG.md](CHANGELOG.md) for a complete list of changes.
144106

145107
## todo
146108

147-
* Solidify API
109+
* Further solidify API
148110
* break components into standalone npm modules where it makes sense
149111
* run integration tests on travis (fall back to offline server for pull requests)
150-
* more tests in general
112+
* add even more tests
151113
* better cross-browser testing (IE, Safari, mobile browsers - maybe saucelabs?)
152114
* update node-sdk to use current version of this lib's RecognizeStream (and also provide the FormatStream + anything else that might be handy)
153115
* move `result` and `results` events to node wrapper (along with the deprecation notice)
@@ -156,7 +118,6 @@ Pipes results through a [FormatStream] by default, set `options.format=false` to
156118
* support a "hard" stop that prevents any further data events, even for already uploaded audio, ensure timing stream also implements this.
157119
* look for bug where single-word final results may omit word confidence (possibly due to FormatStream?)
158120
* fix bug where TimingStream shows words slightly before they're spoken
159-
* support jquery objects for element and targetElement
160121

161122
[RecognizeStream]: http://watson-developer-cloud.github.io/speech-javascript-sdk/master/RecognizeStream.html
162123
[TimingStream]: http://watson-developer-cloud.github.io/speech-javascript-sdk/master/TimingStream.html

speech-to-text/recognize-stream.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ var QUERY_PARAMS_ALLOWED = ['model', 'watson-token']; // , 'X-Watson-Learning-Op
3838
*
3939
* By default, only finalized text is emitted in the data events, however in `readableObjectMode` (usually just `objectMode` when using a helper method).
4040
*
41-
* Todo: add keywords, word_alternatives to examples
42-
*
4341
* An interim result looks like this:
4442
```js
4543
{ alternatives:
@@ -125,8 +123,6 @@ var QUERY_PARAMS_ALLOWED = ['model', 'watson-token']; // , 'X-Watson-Learning-Op
125123
* @param {Boolean} [options.readableObjectMode=false] - emit `result` objects instead of string Buffers for the `data` events. Changes several other defaults.
126124
* @param {Number} [options.X-WDC-PL-OPT-OUT=0] - set to 1 to opt-out of allowing Watson to use this request to improve it's services
127125
*
128-
* //todo: investigate other options at http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/apis/#!/speech-to-text/recognizeSessionless
129-
*
130126
* @constructor
131127
*/
132128
function RecognizeStream(options) {
@@ -240,7 +236,8 @@ RecognizeStream.prototype.initialize = function() {
240236
* @param {Number} reasonCode
241237
* @param {String} description
242238
*/
243-
self.emit('close', e.code, e.reason); /**
239+
self.emit('close', e.code, e.reason);
240+
/**
244241
* @event RecognizeStream#connection-close
245242
* @param {Number} reasonCode
246243
* @param {String} description
@@ -331,13 +328,6 @@ RecognizeStream.prototype.initialize = function() {
331328
}
332329
};
333330

334-
// this.messages = [];
335-
// var send = socket.send;
336-
// socket.send = function(msg) {
337-
// self.messages.push(msg);
338-
// return send.apply(socket, arguments);
339-
// };
340-
341331
this.initialized = true;
342332
};
343333

0 commit comments

Comments
 (0)