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
* @param {String} [options.model='en-US_BroadbandModel'] - voice model to use. Microphone streaming only supports broadband models.
6370
6364
* @param {String} [options.url='wss://stream.watsonplatform.net/speech-to-text/api'] base URL for service
6371
-
* @param {String} [options.content-type='audio/wav'] - content type of audio; should be automatically determined in most cases
6372
-
* @param {Boolean} [options.interim_results=true] - Send back non-final previews of each "sentence" as it is being processed
6365
+
* @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
6366
+
* @param {Boolean} [options.interim_results=false] - Send back non-final previews of each "sentence" as it is being processed. Defaults to true when in objectMode.
6373
6367
* @param {Boolean} [options.continuous=true] - set to false to automatically stop the transcription after the first "sentence"
6374
-
* @param {Boolean} [options.word_confidence=true] - include confidence scores with results
6375
-
* @param {Boolean} [options.timestamps=true] - include timestamps with results
6376
-
* @param {Number} [options.max_alternatives=3] - maximum number of alternative transcriptions to include
6368
+
* @param {Boolean} [options.word_confidence=false] - include confidence scores with results. Defaults to true when in objectMode.
6369
+
* @param {Boolean} [options.timestamps=false] - include timestamps with results. Defaults to true when in objectMode.
6370
+
* @param {Number} [options.max_alternatives=1] - maximum number of alternative transcriptions to include. Defaults to 3 when in objectMode.
6377
6371
* @param {Number} [options.inactivity_timeout=30] - how many seconds of silence before automatically closing the stream (even if continuous is true). use -1 for infinity
6378
-
6372
+
* @param {Boolean} [options.objectMode=false] - emit `result` objects instead of string Buffers for the `data` events. Changes several other defaults.
6373
+
*
6379
6374
* //todo: investigate other options at http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/apis/#!/speech-to-text/recognizeSessionless
* @param {String} [options.model='en-US_BroadbandModel'] - voice model to use. Microphone streaming only supports broadband models.
42
42
* @param {String} [options.url='wss://stream.watsonplatform.net/speech-to-text/api'] base URL for service
43
-
* @param {String} [options.content-type='audio/wav'] - content type of audio; should be automatically determined in most cases
44
-
* @param {Boolean} [options.interim_results=true] - Send back non-final previews of each "sentence" as it is being processed
43
+
* @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
44
+
* @param {Boolean} [options.interim_results=false] - Send back non-final previews of each "sentence" as it is being processed. Defaults to true when in objectMode.
45
45
* @param {Boolean} [options.continuous=true] - set to false to automatically stop the transcription after the first "sentence"
46
-
* @param {Boolean} [options.word_confidence=true] - include confidence scores with results
47
-
* @param {Boolean} [options.timestamps=true] - include timestamps with results
48
-
* @param {Number} [options.max_alternatives=3] - maximum number of alternative transcriptions to include
46
+
* @param {Boolean} [options.word_confidence=false] - include confidence scores with results. Defaults to true when in objectMode.
47
+
* @param {Boolean} [options.timestamps=false] - include timestamps with results. Defaults to true when in objectMode.
48
+
* @param {Number} [options.max_alternatives=1] - maximum number of alternative transcriptions to include. Defaults to 3 when in objectMode.
49
49
* @param {Number} [options.inactivity_timeout=30] - how many seconds of silence before automatically closing the stream (even if continuous is true). use -1 for infinity
50
-
50
+
* @param {Boolean} [options.objectMode=false] - emit `result` objects instead of string Buffers for the `data` events. Changes several other defaults.
51
+
*
51
52
* //todo: investigate other options at http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/apis/#!/speech-to-text/recognizeSessionless
0 commit comments