Skip to content

Commit b7716fc

Browse files
feat(recognize-stream): add new websocket parameters
1 parent ef67b83 commit b7716fc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: speech-to-text/recognize-stream.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ var qs = require('../util/querystring.js');
6363
* @param {boolean} [options.processingMetrics] - If true, requests processing metrics about the service's transcription of the input audio (default=false)
6464
* @param {number} [options.processingMetricsInterval] - Specifies the interval in seconds at which the service is to return processing metrics
6565
* @param {boolean} [options.audioMetrics] - If true, requests detailed information about the signal characteristics of the input audio (detailed=false)
66+
* @param {number} [options.endOfPhraseSilenceTime] - If true, specifies the duration of the pause interval at which the service splits a transcript into multiple final results. Specify a value for the pause interval in the range of 0.0 to 120.0 (default=0.8)
67+
* @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)
68+
* @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)
69+
* @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)
6670
*
6771
* @constructor
6872
*/
@@ -179,7 +183,11 @@ RecognizeStream.prototype.initialize = function() {
179183
'smart_formatting',
180184
'speaker_labels',
181185
'grammar_name',
182-
'redaction'
186+
'redaction',
187+
'end_of_phrase_silence_time',
188+
'split_transcript_at_phrase_end',
189+
'speech_detector_sensitivity',
190+
'background_audio_suppression'
183191
];
184192
var openingMessage = processUserParameters(options, openingMessageParamsAllowed);
185193
openingMessage.action = 'start';

0 commit comments

Comments
 (0)