From 339a5d6c9cf9ecdcfe6c1ac33ae2ede71973584e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 20 Dec 2022 07:08:03 +0000 Subject: [PATCH] feat(speech): update the api #### speech:v1 The following keys were added: - schemas.ABNFGrammar (Total Keys: 4) - schemas.SpeechAdaptation.properties.abnfGrammar.$ref (Total Keys: 1) #### speech:v1p1beta1 The following keys were added: - schemas.ABNFGrammar (Total Keys: 4) - schemas.SpeechAdaptation.properties.abnfGrammar.$ref (Total Keys: 1) --- docs/dyn/speech_v1.speech.html | 10 ++++++++++ docs/dyn/speech_v1p1beta1.speech.html | 10 ++++++++++ .../discovery_cache/documents/speech.v1.json | 19 ++++++++++++++++++- .../documents/speech.v1p1beta1.json | 19 ++++++++++++++++++- 4 files changed, 56 insertions(+), 2 deletions(-) diff --git a/docs/dyn/speech_v1.speech.html b/docs/dyn/speech_v1.speech.html index 564bd0de49c..75b5317daea 100644 --- a/docs/dyn/speech_v1.speech.html +++ b/docs/dyn/speech_v1.speech.html @@ -104,6 +104,11 @@

Method Details

}, "config": { # Provides information to the recognizer that specifies how to process the request. # Required. Provides information to the recognizer that specifies how to process the request. "adaptation": { # Speech adaptation configuration. # Speech adaptation configuration improves the accuracy of speech recognition. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation) documentation. When speech adaptation is set it supersedes the `speech_contexts` field. + "abnfGrammar": { # Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar + "abnfStrings": [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated. + "A String", + ], + }, "customClasses": [ # A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`. { # A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases. "customClassId": "A String", # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. @@ -222,6 +227,11 @@

Method Details

}, "config": { # Provides information to the recognizer that specifies how to process the request. # Required. Provides information to the recognizer that specifies how to process the request. "adaptation": { # Speech adaptation configuration. # Speech adaptation configuration improves the accuracy of speech recognition. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation) documentation. When speech adaptation is set it supersedes the `speech_contexts` field. + "abnfGrammar": { # Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar + "abnfStrings": [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated. + "A String", + ], + }, "customClasses": [ # A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`. { # A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases. "customClassId": "A String", # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. diff --git a/docs/dyn/speech_v1p1beta1.speech.html b/docs/dyn/speech_v1p1beta1.speech.html index bb74b8983a6..ce392133071 100644 --- a/docs/dyn/speech_v1p1beta1.speech.html +++ b/docs/dyn/speech_v1p1beta1.speech.html @@ -104,6 +104,11 @@

Method Details

}, "config": { # Provides information to the recognizer that specifies how to process the request. # Required. Provides information to the recognizer that specifies how to process the request. "adaptation": { # Speech adaptation configuration. # Speech adaptation configuration improves the accuracy of speech recognition. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation) documentation. When speech adaptation is set it supersedes the `speech_contexts` field. + "abnfGrammar": { # Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar + "abnfStrings": [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated. + "A String", + ], + }, "customClasses": [ # A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`. { # A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases. "customClassId": "A String", # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. @@ -234,6 +239,11 @@

Method Details

}, "config": { # Provides information to the recognizer that specifies how to process the request. # Required. Provides information to the recognizer that specifies how to process the request. "adaptation": { # Speech adaptation configuration. # Speech adaptation configuration improves the accuracy of speech recognition. For more information, see the [speech adaptation](https://cloud.google.com/speech-to-text/docs/adaptation) documentation. When speech adaptation is set it supersedes the `speech_contexts` field. + "abnfGrammar": { # Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar + "abnfStrings": [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated. + "A String", + ], + }, "customClasses": [ # A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`. { # A set of words or phrases that represents a common concept likely to appear in your audio, for example a list of passenger ship names. CustomClass items can be substituted into placeholders that you set in PhraseSet phrases. "customClassId": "A String", # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. diff --git a/googleapiclient/discovery_cache/documents/speech.v1.json b/googleapiclient/discovery_cache/documents/speech.v1.json index e47162f2660..684f823cf4a 100644 --- a/googleapiclient/discovery_cache/documents/speech.v1.json +++ b/googleapiclient/discovery_cache/documents/speech.v1.json @@ -524,9 +524,22 @@ } } }, - "revision": "20221115", + "revision": "20221213", "rootUrl": "https://speech.googleapis.com/", "schemas": { + "ABNFGrammar": { + "id": "ABNFGrammar", + "properties": { + "abnfStrings": { + "description": "All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ClassItem": { "description": "An item of the class.", "id": "ClassItem", @@ -1112,6 +1125,10 @@ "description": "Speech adaptation configuration.", "id": "SpeechAdaptation", "properties": { + "abnfGrammar": { + "$ref": "ABNFGrammar", + "description": "Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar" + }, "customClasses": { "description": "A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`.", "items": { diff --git a/googleapiclient/discovery_cache/documents/speech.v1p1beta1.json b/googleapiclient/discovery_cache/documents/speech.v1p1beta1.json index 118379689a5..901165575ff 100644 --- a/googleapiclient/discovery_cache/documents/speech.v1p1beta1.json +++ b/googleapiclient/discovery_cache/documents/speech.v1p1beta1.json @@ -524,9 +524,22 @@ } } }, - "revision": "20221115", + "revision": "20221213", "rootUrl": "https://speech.googleapis.com/", "schemas": { + "ABNFGrammar": { + "id": "ABNFGrammar", + "properties": { + "abnfStrings": { + "description": "All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ClassItem": { "description": "An item of the class.", "id": "ClassItem", @@ -1156,6 +1169,10 @@ "description": "Speech adaptation configuration.", "id": "SpeechAdaptation", "properties": { + "abnfGrammar": { + "$ref": "ABNFGrammar", + "description": "Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar" + }, "customClasses": { "description": "A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`.", "items": {