Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 339a5d6

Browse files
committedDec 20, 2022
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)
1 parent d94dee3 commit 339a5d6

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed
 

‎docs/dyn/speech_v1.speech.html

+10
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ <h3>Method Details</h3>
104104
},
105105
&quot;config&quot;: { # 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.
106106
&quot;adaptation&quot;: { # 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.
107+
&quot;abnfGrammar&quot;: { # 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
108+
&quot;abnfStrings&quot;: [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.
109+
&quot;A String&quot;,
110+
],
111+
},
107112
&quot;customClasses&quot;: [ # A collection of custom classes. To specify the classes inline, leave the class&#x27; `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`.
108113
{ # 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.
109114
&quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
@@ -222,6 +227,11 @@ <h3>Method Details</h3>
222227
},
223228
&quot;config&quot;: { # 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.
224229
&quot;adaptation&quot;: { # 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.
230+
&quot;abnfGrammar&quot;: { # 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
231+
&quot;abnfStrings&quot;: [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.
232+
&quot;A String&quot;,
233+
],
234+
},
225235
&quot;customClasses&quot;: [ # A collection of custom classes. To specify the classes inline, leave the class&#x27; `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`.
226236
{ # 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.
227237
&quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.

‎docs/dyn/speech_v1p1beta1.speech.html

+10
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ <h3>Method Details</h3>
104104
},
105105
&quot;config&quot;: { # 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.
106106
&quot;adaptation&quot;: { # 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.
107+
&quot;abnfGrammar&quot;: { # 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
108+
&quot;abnfStrings&quot;: [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.
109+
&quot;A String&quot;,
110+
],
111+
},
107112
&quot;customClasses&quot;: [ # A collection of custom classes. To specify the classes inline, leave the class&#x27; `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`.
108113
{ # 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.
109114
&quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.
@@ -234,6 +239,11 @@ <h3>Method Details</h3>
234239
},
235240
&quot;config&quot;: { # 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.
236241
&quot;adaptation&quot;: { # 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.
242+
&quot;abnfGrammar&quot;: { # 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
243+
&quot;abnfStrings&quot;: [ # All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.
244+
&quot;A String&quot;,
245+
],
246+
},
237247
&quot;customClasses&quot;: [ # A collection of custom classes. To specify the classes inline, leave the class&#x27; `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`.
238248
{ # 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.
239249
&quot;customClassId&quot;: &quot;A String&quot;, # If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive.

‎googleapiclient/discovery_cache/documents/speech.v1.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,22 @@
524524
}
525525
}
526526
},
527-
"revision": "20221115",
527+
"revision": "20221213",
528528
"rootUrl": "https://speech.googleapis.com/",
529529
"schemas": {
530+
"ABNFGrammar": {
531+
"id": "ABNFGrammar",
532+
"properties": {
533+
"abnfStrings": {
534+
"description": "All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.",
535+
"items": {
536+
"type": "string"
537+
},
538+
"type": "array"
539+
}
540+
},
541+
"type": "object"
542+
},
530543
"ClassItem": {
531544
"description": "An item of the class.",
532545
"id": "ClassItem",
@@ -1112,6 +1125,10 @@
11121125
"description": "Speech adaptation configuration.",
11131126
"id": "SpeechAdaptation",
11141127
"properties": {
1128+
"abnfGrammar": {
1129+
"$ref": "ABNFGrammar",
1130+
"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"
1131+
},
11151132
"customClasses": {
11161133
"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`.",
11171134
"items": {

‎googleapiclient/discovery_cache/documents/speech.v1p1beta1.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,22 @@
524524
}
525525
}
526526
},
527-
"revision": "20221115",
527+
"revision": "20221213",
528528
"rootUrl": "https://speech.googleapis.com/",
529529
"schemas": {
530+
"ABNFGrammar": {
531+
"id": "ABNFGrammar",
532+
"properties": {
533+
"abnfStrings": {
534+
"description": "All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.",
535+
"items": {
536+
"type": "string"
537+
},
538+
"type": "array"
539+
}
540+
},
541+
"type": "object"
542+
},
530543
"ClassItem": {
531544
"description": "An item of the class.",
532545
"id": "ClassItem",
@@ -1156,6 +1169,10 @@
11561169
"description": "Speech adaptation configuration.",
11571170
"id": "SpeechAdaptation",
11581171
"properties": {
1172+
"abnfGrammar": {
1173+
"$ref": "ABNFGrammar",
1174+
"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"
1175+
},
11591176
"customClasses": {
11601177
"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`.",
11611178
"items": {

0 commit comments

Comments
 (0)
Please sign in to comment.