From 3db377bb58c5c2bbbfbb7d28889dd503a8116bee Mon Sep 17 00:00:00 2001 From: Angelo Paparazzi Date: Wed, 13 Mar 2024 12:45:28 -0500 Subject: [PATCH] fix(stt): change smartFormattingVersion type to number --- speech-to-text/v1-generated.ts | 8 ++++---- test/unit/speech-to-text.v1.test.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/speech-to-text/v1-generated.ts b/speech-to-text/v1-generated.ts index cae41fd6c1..8b5868a3ef 100644 --- a/speech-to-text/v1-generated.ts +++ b/speech-to-text/v1-generated.ts @@ -404,7 +404,7 @@ class SpeechToTextV1 extends BaseService { * **Note:** The parameter can be used with US English, Japanese, and Spanish (all dialects) transcription only. * * See [Smart formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting). - * @param {boolean} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that + * @param {number} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that * is supported in US English, Brazilian Portuguese, French and German languages. * @param {boolean} [params.speakerLabels] - If `true`, the response includes labels that identify which words were * 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 { * **Note:** The parameter can be used with US English, Japanese, and Spanish (all dialects) transcription only. * * See [Smart formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting). - * @param {boolean} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that + * @param {number} [params.smartFormattingVersion] - Smart formatting version is for next-generation models and that * is supported in US English, Brazilian Portuguese, French and German languages. * @param {boolean} [params.speakerLabels] - If `true`, the response includes labels that identify which words were * spoken by which participants in a multi-person exchange. By default, the service returns no speaker labels. Setting @@ -4200,7 +4200,7 @@ namespace SpeechToTextV1 { /** Smart formatting version is for next-generation models and that is supported in US English, Brazilian * Portuguese, French and German languages. */ - smartFormattingVersion?: boolean; + smartFormattingVersion?: number; /** If `true`, the response includes labels that identify which words were spoken by which participants in a * multi-person exchange. By default, the service returns no speaker labels. Setting `speaker_labels` to `true` * forces the `timestamps` parameter to be `true`, regardless of whether you specify `false` for the parameter. @@ -4633,7 +4633,7 @@ namespace SpeechToTextV1 { /** Smart formatting version is for next-generation models and that is supported in US English, Brazilian * Portuguese, French and German languages. */ - smartFormattingVersion?: boolean; + smartFormattingVersion?: number; /** If `true`, the response includes labels that identify which words were spoken by which participants in a * multi-person exchange. By default, the service returns no speaker labels. Setting `speaker_labels` to `true` * forces the `timestamps` parameter to be `true`, regardless of whether you specify `false` for the parameter. diff --git a/test/unit/speech-to-text.v1.test.js b/test/unit/speech-to-text.v1.test.js index 241e60b057..f33d4e0e1f 100644 --- a/test/unit/speech-to-text.v1.test.js +++ b/test/unit/speech-to-text.v1.test.js @@ -286,7 +286,7 @@ describe('SpeechToTextV1', () => { const timestamps = false; const profanityFilter = true; const smartFormatting = false; - const smartFormattingVersion = false; + const smartFormattingVersion = 0; const speakerLabels = false; const grammarName = 'testString'; const redaction = false; @@ -623,7 +623,7 @@ describe('SpeechToTextV1', () => { const timestamps = false; const profanityFilter = true; const smartFormatting = false; - const smartFormattingVersion = false; + const smartFormattingVersion = 0; const speakerLabels = false; const grammarName = 'testString'; const redaction = false;