Skip to content

Commit

Permalink
feat(speech): update the API
Browse files Browse the repository at this point in the history
#### speech:v1p1beta1
The following keys were added:
- schemas.RecognitionConfig.properties.enableSpokenEmojis.description
- schemas.RecognitionConfig.properties.enableSpokenEmojis.type
- schemas.RecognitionConfig.properties.enableSpokenPunctuation.description
- schemas.RecognitionConfig.properties.enableSpokenPunctuation.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 30, 2020
1 parent 4ffeff5 commit 10834c4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion discovery/speech-v1p1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
}
}
},
"revision": "20200923",
"revision": "20201113",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ClassItem": {
Expand Down Expand Up @@ -531,6 +531,14 @@
"description": "If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. Note: Use diarization_config instead.",
"type": "boolean"
},
"enableSpokenEmojis": {
"description": "The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request. This will replace spoken emojis with the corresponding Unicode symbols in the final transcript. If 'false', spoken emojis are not replaced.",
"type": "boolean"
},
"enableSpokenPunctuation": {
"description": "The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true', replaces spoken punctuation with the corresponding symbols in the request. For example, \"how are you question mark\" becomes \"how are you?\". See https://cloud.google.com/speech-to-text/docs/spoken-punctuation for support. If 'false', spoken punctuation is not replaced.",
"type": "boolean"
},
"enableWordConfidence": {
"description": "If `true`, the top result includes a list of words and the confidence for those words. If `false`, no word-level confidence information is returned. The default is `false`.",
"type": "boolean"
Expand Down
8 changes: 8 additions & 0 deletions src/apis/speech/v1p1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,14 @@ export namespace speech_v1p1beta1 {
* If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. Note: Use diarization_config instead.
*/
enableSpeakerDiarization?: boolean | null;
/**
* The spoken emoji behavior for the call If not set, uses default behavior based on model of choice If 'true', adds spoken emoji formatting for the request. This will replace spoken emojis with the corresponding Unicode symbols in the final transcript. If 'false', spoken emojis are not replaced.
*/
enableSpokenEmojis?: boolean | null;
/**
* The spoken punctuation behavior for the call If not set, uses default behavior based on model of choice e.g. command_and_search will enable spoken punctuation by default If 'true', replaces spoken punctuation with the corresponding symbols in the request. For example, "how are you question mark" becomes "how are you?". See https://cloud.google.com/speech-to-text/docs/spoken-punctuation for support. If 'false', spoken punctuation is not replaced.
*/
enableSpokenPunctuation?: boolean | null;
/**
* If `true`, the top result includes a list of words and the confidence for those words. If `false`, no word-level confidence information is returned. The default is `false`.
*/
Expand Down

0 comments on commit 10834c4

Please sign in to comment.