Skip to content

Commit

Permalink
fix(speech): update the API
Browse files Browse the repository at this point in the history
#### speech:v1p1beta1

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
- schemas.RecognitionConfig.properties.adaptation.description
- schemas.RecognitionConfig.properties.speechContexts.description

#### speech:v2beta1

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description

#### speech:v1

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
- schemas.RecognitionConfig.properties.speechContexts.description
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 5, 2021
1 parent 9bb3633 commit 8ab7dc7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions discovery/speech-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -212,7 +212,7 @@
}
}
},
"revision": "20210225",
"revision": "20210325",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ListOperationsResponse": {
Expand Down Expand Up @@ -416,7 +416,7 @@
"type": "integer"
},
"speechContexts": {
"description": "Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/context-strength).",
"description": "Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation).",
"items": {
"$ref": "SpeechContext"
},
Expand Down
8 changes: 4 additions & 4 deletions discovery/speech-v1p1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -524,7 +524,7 @@
}
}
},
"revision": "20210318",
"revision": "20210325",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ClassItem": {
Expand Down Expand Up @@ -819,7 +819,7 @@
"properties": {
"adaptation": {
"$ref": "SpeechAdaptation",
"description": "Speech adaptation configuration improves the accuracy of speech recognition. When speech adaptation is set it supersedes the `speech_contexts` field. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/context-strength) documentation."
"description": "Speech adaptation configuration improves the accuracy of speech recognition. When speech adaptation is set it supersedes the `speech_contexts` field. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation) documentation."
},
"alternativeLanguageCodes": {
"description": "A list of up to 3 additional [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags, listing possible alternative languages of the supplied audio. See [Language Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of the currently supported language codes. If alternative languages are listed, recognition result will contain recognition in the most likely language detected including the main language_code. The recognition result will include the language tag of the language detected in the audio. Note: This feature is only supported for Voice Command and Voice Search use cases and performance may vary for other use cases (e.g., phone call transcription).",
Expand Down Expand Up @@ -915,7 +915,7 @@
"type": "integer"
},
"speechContexts": {
"description": "Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/context-strength).",
"description": "Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation).",
"items": {
"$ref": "SpeechContext"
},
Expand Down
4 changes: 2 additions & 2 deletions discovery/speech-v2beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
Expand Down Expand Up @@ -184,7 +184,7 @@
}
}
},
"revision": "20200923",
"revision": "20210325",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ListOperationsResponse": {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/speech/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export namespace speech_v1 {
*/
sampleRateHertz?: number | null;
/**
* Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/context-strength).
* Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation).
*/
speechContexts?: Schema$SpeechContext[];
/**
Expand Down
4 changes: 2 additions & 2 deletions src/apis/speech/v1p1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export namespace speech_v1p1beta1 {
*/
export interface Schema$RecognitionConfig {
/**
* Speech adaptation configuration improves the accuracy of speech recognition. When speech adaptation is set it supersedes the `speech_contexts` field. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/context-strength) documentation.
* Speech adaptation configuration improves the accuracy of speech recognition. When speech adaptation is set it supersedes the `speech_contexts` field. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation) documentation.
*/
adaptation?: Schema$SpeechAdaptation;
/**
Expand Down Expand Up @@ -424,7 +424,7 @@ export namespace speech_v1p1beta1 {
*/
sampleRateHertz?: number | null;
/**
* Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/context-strength).
* Array of SpeechContext. A means to provide context to assist the speech recognition. For more information, see [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation).
*/
speechContexts?: Schema$SpeechContext[];
/**
Expand Down

0 comments on commit 8ab7dc7

Please sign in to comment.