Skip to content

Commit a7b45aa

Browse files
committed
JSDOC for options.token
1 parent 827e476 commit a7b45aa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Changelog
22

3+
### v0.20
4+
* Documented RecognizeStream's options.token
5+
6+
37
### v0.19
4-
* Added support for STT's `smart_formatting` option
8+
* Added support for STT's `smart_formatting` option
59

610
### v0.17
711
* Enabled interim_results by default for text mode because the service now buffers final results until the end otherwise.

speech-to-text/recognize-stream.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ var QUERY_PARAMS_ALLOWED = ['customization_id',' model', 'watson-token']; // , '
109109
* @param {Object} options
110110
* @param {String} [options.model='en-US_BroadbandModel'] - voice model to use. Microphone streaming only supports broadband models.
111111
* @param {String} [options.url='wss://stream.watsonplatform.net/speech-to-text/api'] base URL for service
112+
* @param {String} [options.token] - Auth token
112113
* @param {String} [options.content-type='audio/wav'] - content type of audio; can be automatically determined from file header in most cases. only wav, flac, and ogg/opus are supported
113114
* @param {Boolean} [options.interim_results=true] - Send back non-final previews of each "sentence" as it is being processed. These results are ignored in text mode.
114115
* @param {Boolean} [options.continuous=true] - set to false to automatically stop the transcription after the first "sentence"

0 commit comments

Comments
 (0)