Skip to content

Commit 3b2c0fa

Browse files
feat(speech): update the api
#### speech:v1p1beta1 The following keys were added: - schemas.Entry (Total Keys: 5) - schemas.RecognitionConfig.properties.transcriptNormalization.$ref (Total Keys: 1) - schemas.TranscriptNormalization (Total Keys: 3)
1 parent 214c7cc commit 3b2c0fa

File tree

6 files changed

+55
-7
lines changed

6 files changed

+55
-7
lines changed

docs/dyn/speech_v1p1beta1.projects.locations.customClasses.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ <h3>Method Details</h3>
120120
],
121121
&quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
122122
},
123-
&quot;customClassId&quot;: &quot;A String&quot;, # The ID to use for the custom class, which will become the final component of the custom class&#x27; resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
123+
&quot;customClassId&quot;: &quot;A String&quot;, # Required. The ID to use for the custom class, which will become the final component of the custom class&#x27; resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
124124
}
125125

126126
x__xgafv: string, V1 error format.

docs/dyn/speech_v1p1beta1.projects.locations.phraseSets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h3>Method Details</h3>
121121
},
122122
],
123123
},
124-
&quot;phraseSetId&quot;: &quot;A String&quot;, # The ID to use for the phrase set, which will become the final component of the phrase set&#x27;s resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
124+
&quot;phraseSetId&quot;: &quot;A String&quot;, # Required. The ID to use for the phrase set, which will become the final component of the phrase set&#x27;s resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
125125
}
126126

127127
x__xgafv: string, V1 error format.

docs/dyn/speech_v1p1beta1.speech.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ <h3>Method Details</h3>
174174
],
175175
},
176176
],
177+
&quot;transcriptNormalization&quot;: { # Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability &gt; 0.8) and final transcripts. # Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability &gt; 0.8) and final transcripts.
178+
&quot;entries&quot;: { # A single replacement configuration. # A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [&quot;cat&quot; =&gt; &quot;dog&quot;, &quot;mountain cat&quot; =&gt; &quot;mountain dog&quot;] will never be applied because we will always process the first entry before it. At most 100 entries.
179+
&quot;caseSensitive&quot;: True or False, # Whether the search is case sensitive.
180+
&quot;replace&quot;: &quot;A String&quot;, # What to replace with. Max length is 100 characters.
181+
&quot;search&quot;: &quot;A String&quot;, # What to replace. Max length is 100 characters.
182+
},
183+
},
177184
&quot;useEnhanced&quot;: True or False, # Set to true to use an enhanced model for speech recognition. If `use_enhanced` is set to true and the `model` field is not set, then an appropriate enhanced model is chosen if an enhanced model exists for the audio. If `use_enhanced` is true and an enhanced version of the specified model does not exist, then the speech is recognized using the standard version of the specified model.
178185
},
179186
&quot;outputConfig&quot;: { # Specifies an optional destination for the recognition results. # Optional. Specifies an optional destination for the recognition results.
@@ -295,6 +302,13 @@ <h3>Method Details</h3>
295302
],
296303
},
297304
],
305+
&quot;transcriptNormalization&quot;: { # Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability &gt; 0.8) and final transcripts. # Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability &gt; 0.8) and final transcripts.
306+
&quot;entries&quot;: { # A single replacement configuration. # A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [&quot;cat&quot; =&gt; &quot;dog&quot;, &quot;mountain cat&quot; =&gt; &quot;mountain dog&quot;] will never be applied because we will always process the first entry before it. At most 100 entries.
307+
&quot;caseSensitive&quot;: True or False, # Whether the search is case sensitive.
308+
&quot;replace&quot;: &quot;A String&quot;, # What to replace with. Max length is 100 characters.
309+
&quot;search&quot;: &quot;A String&quot;, # What to replace. Max length is 100 characters.
310+
},
311+
},
298312
&quot;useEnhanced&quot;: True or False, # Set to true to use an enhanced model for speech recognition. If `use_enhanced` is set to true and the `model` field is not set, then an appropriate enhanced model is chosen if an enhanced model exists for the audio. If `use_enhanced` is true and an enhanced version of the specified model does not exist, then the speech is recognized using the standard version of the specified model.
299313
},
300314
}

googleapiclient/discovery_cache/documents/speech.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
}
213213
}
214214
},
215-
"revision": "20210706",
215+
"revision": "20210714",
216216
"rootUrl": "https://speech.googleapis.com/",
217217
"schemas": {
218218
"ListOperationsResponse": {

googleapiclient/discovery_cache/documents/speech.v1p1beta1.json

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
}
525525
}
526526
},
527-
"revision": "20210706",
527+
"revision": "20210714",
528528
"rootUrl": "https://speech.googleapis.com/",
529529
"schemas": {
530530
"ClassItem": {
@@ -547,7 +547,7 @@
547547
"description": "Required. The custom class to create."
548548
},
549549
"customClassId": {
550-
"description": "The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
550+
"description": "Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
551551
"type": "string"
552552
}
553553
},
@@ -562,7 +562,7 @@
562562
"description": "Required. The phrase set to create."
563563
},
564564
"phraseSetId": {
565-
"description": "The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
565+
"description": "Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
566566
"type": "string"
567567
}
568568
},
@@ -596,6 +596,25 @@
596596
"properties": {},
597597
"type": "object"
598598
},
599+
"Entry": {
600+
"description": "A single replacement configuration.",
601+
"id": "Entry",
602+
"properties": {
603+
"caseSensitive": {
604+
"description": "Whether the search is case sensitive.",
605+
"type": "boolean"
606+
},
607+
"replace": {
608+
"description": "What to replace with. Max length is 100 characters.",
609+
"type": "string"
610+
},
611+
"search": {
612+
"description": "What to replace. Max length is 100 characters.",
613+
"type": "string"
614+
}
615+
},
616+
"type": "object"
617+
},
599618
"ListCustomClassesResponse": {
600619
"description": "Message returned to the client by the `ListCustomClasses` method.",
601620
"id": "ListCustomClassesResponse",
@@ -931,6 +950,10 @@
931950
},
932951
"type": "array"
933952
},
953+
"transcriptNormalization": {
954+
"$ref": "TranscriptNormalization",
955+
"description": "Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts."
956+
},
934957
"useEnhanced": {
935958
"description": "Set to true to use an enhanced model for speech recognition. If `use_enhanced` is set to true and the `model` field is not set, then an appropriate enhanced model is chosen if an enhanced model exists for the audio. If `use_enhanced` is true and an enhanced version of the specified model does not exist, then the speech is recognized using the standard version of the specified model.",
936959
"type": "boolean"
@@ -1222,6 +1245,17 @@
12221245
},
12231246
"type": "object"
12241247
},
1248+
"TranscriptNormalization": {
1249+
"description": "Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.",
1250+
"id": "TranscriptNormalization",
1251+
"properties": {
1252+
"entries": {
1253+
"$ref": "Entry",
1254+
"description": "A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [\"cat\" => \"dog\", \"mountain cat\" => \"mountain dog\"] will never be applied because we will always process the first entry before it. At most 100 entries."
1255+
}
1256+
},
1257+
"type": "object"
1258+
},
12251259
"TranscriptOutputConfig": {
12261260
"description": "Specifies an optional destination for the recognition results.",
12271261
"id": "TranscriptOutputConfig",

googleapiclient/discovery_cache/documents/speech.v2beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
}
185185
}
186186
},
187-
"revision": "20210706",
187+
"revision": "20210714",
188188
"rootUrl": "https://speech.googleapis.com/",
189189
"schemas": {
190190
"ListOperationsResponse": {

0 commit comments

Comments
 (0)