Skip to content

Commit

Permalink
fix(stt): change smartFormattingVersion type to number
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Mar 13, 2024
1 parent 6d34fda commit 3db377b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions speech-to-text/v1-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions test/unit/speech-to-text.v1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3db377b

Please sign in to comment.