Skip to content

Commit

Permalink
feat(speech): update the api
Browse files Browse the repository at this point in the history
#### speech:v1

The following keys were added:
- schemas.LongRunningRecognizeResponse.properties.outputConfig.$ref (Total Keys: 1)
- schemas.LongRunningRecognizeResponse.properties.outputError.$ref (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Oct 12, 2021
1 parent 86ea33a commit 1fe9ba8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions googleapiclient/discovery_cache/documents/speech.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
}
}
},
"revision": "20210924",
"revision": "20210929",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ListOperationsResponse": {
Expand Down Expand Up @@ -283,6 +283,14 @@
"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.",
"id": "LongRunningRecognizeResponse",
"properties": {
"outputConfig": {
"$ref": "TranscriptOutputConfig",
"description": "Original output config if present in the request."
},
"outputError": {
"$ref": "Status",
"description": "If the transcript output fails this field contains the relevant error."
},
"results": {
"description": "Sequential list of transcription results corresponding to sequential portions of audio.",
"items": {
Expand Down Expand Up @@ -384,7 +392,8 @@
"AMR",
"AMR_WB",
"OGG_OPUS",
"SPEEX_WITH_HEADER_BYTE"
"SPEEX_WITH_HEADER_BYTE",
"WEBM_OPUS"
],
"enumDescriptions": [
"Not specified.",
Expand All @@ -394,7 +403,8 @@
"Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.",
"Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.",
"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.",
"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."
"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.",
"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."
],
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
}
}
},
"revision": "20210924",
"revision": "20210929",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ClassItem": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}
}
},
"revision": "20210924",
"revision": "20210929",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ListOperationsResponse": {
Expand Down

0 comments on commit 1fe9ba8

Please sign in to comment.