Skip to content

Commit 13fb2ab

Browse files
fix(stt): add missing smart_formatting_version param
1 parent b11efbb commit 13fb2ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/recognize-stream.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class RecognizeStream extends Duplex {
9595
* @param {boolean} [options.timestamps] - If true, the service returns time alignment for each word (default=false)
9696
* @param {boolean} [options.profanityFilter] - If true, the service filters profanity from all output except for keyword results by replacing inappropriate words with a series of asterisks (default=true)
9797
* @param {boolean} [options.smartFormatting] - If true, the service converts dates, times, series of digits and numbers, phone numbers, currency values, and internet addresses into more readable, conventional representations (default=false)
98+
* @param {number} [params.smartFormattingVersion] - Smart formatting version for large speech models and next-generation models
9899
* @param {boolean} [options.speakerLabels] - If true, the response includes labels that identify which words were spoken by which participants in a multi-person exchange (default=false)
99100
* @param {string} [options.grammarName] - The name of a grammar that is to be used with the recognition request
100101
* @param {boolean} [options.redaction] - If true, the service redacts, or masks, numeric data from final transcripts (default=false)
@@ -176,6 +177,7 @@ class RecognizeStream extends Duplex {
176177
'word_alternatives_threshold',
177178
'profanity_filter',
178179
'smart_formatting',
180+
'smart_formatting_version',
179181
'speaker_labels',
180182
'grammar_name',
181183
'redaction',

0 commit comments

Comments
 (0)