Skip to content

Commit fde731f

Browse files
committed
doc typo [ci skip]
1 parent 015497e commit fde731f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

speech-to-text/recognize-stream.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ var QUERY_PARAMS_ALLOWED = ['customization_id','model', 'watson-token']; // , 'X
3636
*
3737
* Uses WebSockets under the hood. For audio with no recognizable speech, no `data` events are emitted.
3838
*
39-
* By default, only finalized text is emitted in the data events, however in `readableObjectMode` (usually just `objectMode` when using a helper method).
39+
* By default, only finalized text is emitted in the data events, however when `objectMode`/`readableObjectMode` and `interim_results` are enabled, both interim and final results objects are emitted.
40+
* WriteableElementStream uses this, for example, to live-update the DOM with word-by-word transcriptions.
4041
*
4142
* An interim result looks like this:
4243
```js

0 commit comments

Comments
 (0)