Skip to content

Commit 1fe9ba8

Browse files
feat(speech): update the api
#### speech:v1 The following keys were added: - schemas.LongRunningRecognizeResponse.properties.outputConfig.$ref (Total Keys: 1) - schemas.LongRunningRecognizeResponse.properties.outputError.$ref (Total Keys: 1)
1 parent 86ea33a commit 1fe9ba8

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

googleapiclient/discovery_cache/documents/speech.v1.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
}
213213
}
214214
},
215-
"revision": "20210924",
215+
"revision": "20210929",
216216
"rootUrl": "https://speech.googleapis.com/",
217217
"schemas": {
218218
"ListOperationsResponse": {
@@ -283,6 +283,14 @@
283283
"description": "The only message returned to the client by the `LongRunningRecognize` method. It contains the result as zero or more sequential `SpeechRecognitionResult` messages. It is included in the `result.response` field of the `Operation` returned by the `GetOperation` call of the `google::longrunning::Operations` service.",
284284
"id": "LongRunningRecognizeResponse",
285285
"properties": {
286+
"outputConfig": {
287+
"$ref": "TranscriptOutputConfig",
288+
"description": "Original output config if present in the request."
289+
},
290+
"outputError": {
291+
"$ref": "Status",
292+
"description": "If the transcript output fails this field contains the relevant error."
293+
},
286294
"results": {
287295
"description": "Sequential list of transcription results corresponding to sequential portions of audio.",
288296
"items": {
@@ -384,7 +392,8 @@
384392
"AMR",
385393
"AMR_WB",
386394
"OGG_OPUS",
387-
"SPEEX_WITH_HEADER_BYTE"
395+
"SPEEX_WITH_HEADER_BYTE",
396+
"WEBM_OPUS"
388397
],
389398
"enumDescriptions": [
390399
"Not specified.",
@@ -394,7 +403,8 @@
394403
"Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.",
395404
"Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.",
396405
"Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be one of 8000, 12000, 16000, 24000, or 48000.",
397-
"Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Cloud Speech API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000."
406+
"Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Cloud Speech API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.",
407+
"Opus encoded audio frames in WebM container ([OggOpus](https://wiki.xiph.org/OggOpus)). This is a Beta features and only available in v1p1beta1. `sample_rate_hertz` must be one of 8000, 12000, 16000, 24000, or 48000."
398408
],
399409
"type": "string"
400410
},

googleapiclient/discovery_cache/documents/speech.v1p1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
}
525525
}
526526
},
527-
"revision": "20210924",
527+
"revision": "20210929",
528528
"rootUrl": "https://speech.googleapis.com/",
529529
"schemas": {
530530
"ClassItem": {

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": "20210924",
187+
"revision": "20210929",
188188
"rootUrl": "https://speech.googleapis.com/",
189189
"schemas": {
190190
"ListOperationsResponse": {

0 commit comments

Comments
 (0)