BatchRecognizeFileResult

Final results for a single file.

JSON representation
{
  "error": {
    object (Status)
  },
  "metadata": {
    object (RecognitionResponseMetadata)
  },
  "uri": string,
  "transcript": {
    object (BatchRecognizeResults)
  },

  // Union field result can be only one of the following:
  "cloudStorageResult": {
    object (CloudStorageResult)
  },
  "inlineResult": {
    object (InlineResult)
  }
  // End of list of possible types for union field result.
}
Fields
error

object (Status)

Error if one was encountered.

metadata

object (RecognitionResponseMetadata)

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

string

The Cloud Storage URI to which recognition results were written.

vttFormatUri

string

The Cloud Storage URI to which recognition results were written as VTT formatted captions. This is populated only when VTT output is requested.

srtFormatUri

string

The Cloud Storage URI to which recognition results were written as SRT formatted captions. This is populated only when SRT output is requested.

InlineResult

Final results returned inline in the recognition response.

JSON representation
{
  "transcript": {
    object (BatchRecognizeResults)
  },
  "vttCaptions": string,
  "srtCaptions": string
}
Fields
transcript

object (BatchRecognizeResults)

The transcript for the audio file.

vttCaptions

string

The transcript for the audio file as VTT formatted captions. This is populated only when VTT output is requested.

srtCaptions

string

The transcript for the audio file as SRT formatted captions. This is populated only when SRT output is requested.

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 (SpeechRecognitionResult)
    }
  ],
  "metadata": {
    object (RecognitionResponseMetadata)
  }
}
Fields
results[]

object (SpeechRecognitionResult)

Sequential list of transcription results corresponding to sequential portions of audio.

metadata

object (RecognitionResponseMetadata)

Metadata about the recognition.