Skip to content

Commit bf6e86f

Browse files
feat(speech): update the api
#### speech:v1 The following keys were added: - schemas.LongRunningRecognizeRequest.properties.outputConfig.$ref (Total Keys: 1) - schemas.TranscriptOutputConfig (Total Keys: 3) #### speech:v1p1beta1 The following keys were added: - schemas.Entry (Total Keys: 5) - schemas.RecognitionConfig.properties.transcriptNormalization.$ref (Total Keys: 1) - schemas.TranscriptNormalization (Total Keys: 4)
1 parent 03221e6 commit bf6e86f

File tree

5 files changed

+76
-3
lines changed

5 files changed

+76
-3
lines changed

docs/dyn/speech_v1.speech.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ <h3>Method Details</h3>
138138
],
139139
&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.
140140
},
141+
&quot;outputConfig&quot;: { # Specifies an optional destination for the recognition results. # Optional. Specifies an optional destination for the recognition results.
142+
&quot;gcsUri&quot;: &quot;A String&quot;, # Specifies a Cloud Storage URI for the recognition results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist.
143+
},
141144
}
142145

143146
x__xgafv: string, V1 error format.

docs/dyn/speech_v1p1beta1.speech.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@ <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 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+
{ # A single replacement configuration.
180+
&quot;caseSensitive&quot;: True or False, # Whether the search is case sensitive.
181+
&quot;replace&quot;: &quot;A String&quot;, # What to replace with. Max length is 100 characters.
182+
&quot;search&quot;: &quot;A String&quot;, # What to replace. Max length is 100 characters.
183+
},
184+
],
185+
},
177186
&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.
178187
},
179188
&quot;outputConfig&quot;: { # Specifies an optional destination for the recognition results. # Optional. Specifies an optional destination for the recognition results.
@@ -295,6 +304,15 @@ <h3>Method Details</h3>
295304
],
296305
},
297306
],
307+
&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.
308+
&quot;entries&quot;: [ # 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.
309+
{ # A single replacement configuration.
310+
&quot;caseSensitive&quot;: True or False, # Whether the search is case sensitive.
311+
&quot;replace&quot;: &quot;A String&quot;, # What to replace with. Max length is 100 characters.
312+
&quot;search&quot;: &quot;A String&quot;, # What to replace. Max length is 100 characters.
313+
},
314+
],
315+
},
298316
&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.
299317
},
300318
}

googleapiclient/discovery_cache/documents/speech.v1.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
}
213213
}
214214
},
215-
"revision": "20210810",
215+
"revision": "20210907",
216216
"rootUrl": "https://speech.googleapis.com/",
217217
"schemas": {
218218
"ListOperationsResponse": {
@@ -271,6 +271,10 @@
271271
"config": {
272272
"$ref": "RecognitionConfig",
273273
"description": "Required. Provides information to the recognizer that specifies how to process the request."
274+
},
275+
"outputConfig": {
276+
"$ref": "TranscriptOutputConfig",
277+
"description": "Optional. Specifies an optional destination for the recognition results."
274278
}
275279
},
276280
"type": "object"
@@ -680,6 +684,17 @@
680684
},
681685
"type": "object"
682686
},
687+
"TranscriptOutputConfig": {
688+
"description": "Specifies an optional destination for the recognition results.",
689+
"id": "TranscriptOutputConfig",
690+
"properties": {
691+
"gcsUri": {
692+
"description": "Specifies a Cloud Storage URI for the recognition results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist.",
693+
"type": "string"
694+
}
695+
},
696+
"type": "object"
697+
},
683698
"WordInfo": {
684699
"description": "Word-specific information for recognized words.",
685700
"id": "WordInfo",

googleapiclient/discovery_cache/documents/speech.v1p1beta1.json

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
}
525525
}
526526
},
527-
"revision": "20210810",
527+
"revision": "20210907",
528528
"rootUrl": "https://speech.googleapis.com/",
529529
"schemas": {
530530
"ClassItem": {
@@ -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",
@@ -936,6 +955,10 @@
936955
},
937956
"type": "array"
938957
},
958+
"transcriptNormalization": {
959+
"$ref": "TranscriptNormalization",
960+
"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."
961+
},
939962
"useEnhanced": {
940963
"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.",
941964
"type": "boolean"
@@ -1232,6 +1255,20 @@
12321255
},
12331256
"type": "object"
12341257
},
1258+
"TranscriptNormalization": {
1259+
"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.",
1260+
"id": "TranscriptNormalization",
1261+
"properties": {
1262+
"entries": {
1263+
"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.",
1264+
"items": {
1265+
"$ref": "Entry"
1266+
},
1267+
"type": "array"
1268+
}
1269+
},
1270+
"type": "object"
1271+
},
12351272
"TranscriptOutputConfig": {
12361273
"description": "Specifies an optional destination for the recognition results.",
12371274
"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": "20210810",
187+
"revision": "20210907",
188188
"rootUrl": "https://speech.googleapis.com/",
189189
"schemas": {
190190
"ListOperationsResponse": {

0 commit comments

Comments
 (0)