Skip to content

Commit 5632e4f

Browse files
feat(recognize-stream): add new websocket parameter
1 parent b7716fc commit 5632e4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

speech-to-text/recognize-stream.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ var qs = require('../util/querystring.js');
6767
* @param {boolean} [options.splitTranscriptAtPhraseEnd] - If true, directs the service to split the transcript into multiple final results based on semantic features of the input, for example, at the conclusion of meaningful phrases such as sentences (default=false)
6868
* @param {number} [options.speechDetectorSensitivity] - The sensitivity of speech activity detection that the service is to perform. Specify a value between 0.0 and 1.0 (default=0.5)
6969
* @param {number} [options.backgroundAudioSuppression] - The level to which the service is to suppress background audio based on its volume to prevent it from being transcribed as speech. Specify a value between 0.0 and 1.0 (default=0.0)
70+
* @param {boolean} [options.lowLatency] - If `true` for next-generation `Multimedia` and `Telephony` models that support low latency, directs the service to produce results even more quickly than it usually does.
7071
*
7172
* @constructor
7273
*/
@@ -187,7 +188,8 @@ RecognizeStream.prototype.initialize = function() {
187188
'end_of_phrase_silence_time',
188189
'split_transcript_at_phrase_end',
189190
'speech_detector_sensitivity',
190-
'background_audio_suppression'
191+
'background_audio_suppression',
192+
'low_latency'
191193
];
192194
var openingMessage = processUserParameters(options, openingMessageParamsAllowed);
193195
openingMessage.action = 'start';

0 commit comments

Comments
 (0)