Skip to content

Commit 3db377b

Browse files
fix(stt): change smartFormattingVersion type to number
1 parent 6d34fda commit 3db377b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

speech-to-text/v1-generated.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class SpeechToTextV1 extends BaseService {
404404
* **Note:** The parameter can be used with US English, Japanese, and Spanish (all dialects) transcription only.
405405
*
406406
* See [Smart formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting).
407-
* @param {boolean} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that
407+
* @param {number} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that
408408
* is supported in US English, Brazilian Portuguese, French and German languages.
409409
* @param {boolean} [params.speakerLabels] - If `true`, the response includes labels that identify which words were
410410
* spoken by which participants in a multi-person exchange. By default, the service returns no speaker labels. Setting
@@ -972,7 +972,7 @@ class SpeechToTextV1 extends BaseService {
972972
* **Note:** The parameter can be used with US English, Japanese, and Spanish (all dialects) transcription only.
973973
*
974974
* See [Smart formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting).
975-
* @param {boolean} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that
975+
* @param {number} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that
976976
* is supported in US English, Brazilian Portuguese, French and German languages.
977977
* @param {boolean} [params.speakerLabels] - If `true`, the response includes labels that identify which words were
978978
* spoken by which participants in a multi-person exchange. By default, the service returns no speaker labels. Setting
@@ -4200,7 +4200,7 @@ namespace SpeechToTextV1 {
42004200
/** Smart formatting version is for next-generation models and that is supported in US English, Brazilian
42014201
* Portuguese, French and German languages.
42024202
*/
4203-
smartFormattingVersion?: boolean;
4203+
smartFormattingVersion?: number;
42044204
/** If `true`, the response includes labels that identify which words were spoken by which participants in a
42054205
* multi-person exchange. By default, the service returns no speaker labels. Setting `speaker_labels` to `true`
42064206
* forces the `timestamps` parameter to be `true`, regardless of whether you specify `false` for the parameter.
@@ -4633,7 +4633,7 @@ namespace SpeechToTextV1 {
46334633
/** Smart formatting version is for next-generation models and that is supported in US English, Brazilian
46344634
* Portuguese, French and German languages.
46354635
*/
4636-
smartFormattingVersion?: boolean;
4636+
smartFormattingVersion?: number;
46374637
/** If `true`, the response includes labels that identify which words were spoken by which participants in a
46384638
* multi-person exchange. By default, the service returns no speaker labels. Setting `speaker_labels` to `true`
46394639
* forces the `timestamps` parameter to be `true`, regardless of whether you specify `false` for the parameter.

test/unit/speech-to-text.v1.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ describe('SpeechToTextV1', () => {
286286
const timestamps = false;
287287
const profanityFilter = true;
288288
const smartFormatting = false;
289-
const smartFormattingVersion = false;
289+
const smartFormattingVersion = 0;
290290
const speakerLabels = false;
291291
const grammarName = 'testString';
292292
const redaction = false;
@@ -623,7 +623,7 @@ describe('SpeechToTextV1', () => {
623623
const timestamps = false;
624624
const profanityFilter = true;
625625
const smartFormatting = false;
626-
const smartFormattingVersion = false;
626+
const smartFormattingVersion = 0;
627627
const speakerLabels = false;
628628
const grammarName = 'testString';
629629
const redaction = false;

0 commit comments

Comments
 (0)