Final results for a single file.
| JSON representation |
|---|
{ "error" : { object ( |
error
object (
Status
)
Error if one was encountered.
uri
(deprecated)
string
Deprecated. Use cloudStorageResult.native_format_uri
instead.
transcript
(deprecated)
object (
BatchRecognizeResults
)
Deprecated. Use inlineResult.transcript
instead.
Union field result
.
result
can be only one of the following:
cloudStorageResult
object (
CloudStorageResult
)
Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig
is set in the [RecognitionOutputConfig][ google.cloud.speech.v2.RecognitionOutputConfig
.
inlineResult
object (
InlineResult
)
Recognition results. This is populated only when InlineOutputConfig
is set in the [RecognitionOutputConfig][ google.cloud.speech.v2.RecognitionOutputConfig
.
CloudStorageResult
Final results written to Cloud Storage.
| JSON representation |
|---|
{ "uri" : string , "vttFormatUri" : string , "srtFormatUri" : string } |
| Fields | |
|---|---|
uri
|
The Cloud Storage URI to which recognition results were written. |
vttFormatUri
|
The Cloud Storage URI to which recognition results were written as VTT formatted captions. This is populated only when |
srtFormatUri
|
The Cloud Storage URI to which recognition results were written as SRT formatted captions. This is populated only when |
InlineResult
Final results returned inline in the recognition response.
| JSON representation |
|---|
{
"transcript"
:
{
object (
|
| Fields | |
|---|---|
transcript
|
The transcript for the audio file. |
vttCaptions
|
The transcript for the audio file as VTT formatted captions. This is populated only when |
srtCaptions
|
The transcript for the audio file as SRT formatted captions. This is populated only when |
BatchRecognizeResults
Output type for Cloud Storage of recognizers.batchRecognize transcripts. Though this proto isn't returned in this API anywhere, the Cloud Storage transcripts will be this proto serialized and should be parsed as such.
| JSON representation |
|---|
{ "results" : [ { object ( |
| Fields | |
|---|---|
results[]
|
Sequential list of transcription results corresponding to sequential portions of audio. |
metadata
|
Metadata about the recognition. |

