Cloud Speech-to-Text V2 API - Class Google::Cloud::Speech::V2::BatchRecognizeFileResult (v1.4.0)

Reference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::BatchRecognizeFileResult.

Final results for a single file.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cloud_storage_result

defcloud_storage_result()->::Google::Cloud::Speech::V2::CloudStorageResult
Returns
  • (::Google::Cloud::Speech::V2::CloudStorageResult) — Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].

    Note: The following fields are mutually exclusive: cloud_storage_result, inline_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

#cloud_storage_result=

defcloud_storage_result=(value)->::Google::Cloud::Speech::V2::CloudStorageResult
Parameter
  • value (::Google::Cloud::Speech::V2::CloudStorageResult) — Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].

    Note: The following fields are mutually exclusive: cloud_storage_result, inline_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Speech::V2::CloudStorageResult) — Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].

    Note: The following fields are mutually exclusive: cloud_storage_result, inline_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

#error

deferror()->::Google::Rpc::Status
Returns

#error=

deferror=(value)->::Google::Rpc::Status
Parameter
Returns

#inline_result

definline_result()->::Google::Cloud::Speech::V2::InlineResult
Returns
  • (::Google::Cloud::Speech::V2::InlineResult) — Recognition results. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].

    Note: The following fields are mutually exclusive: inline_result, cloud_storage_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

#inline_result=

definline_result=(value)->::Google::Cloud::Speech::V2::InlineResult
Parameter
  • value (::Google::Cloud::Speech::V2::InlineResult) — Recognition results. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].

    Note: The following fields are mutually exclusive: inline_result, cloud_storage_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Speech::V2::InlineResult) — Recognition results. This is populated only when InlineOutputConfig is set in the [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].

    Note: The following fields are mutually exclusive: inline_result, cloud_storage_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

#metadata

defmetadata()->::Google::Cloud::Speech::V2::RecognitionResponseMetadata

#metadata=

defmetadata=(value)->::Google::Cloud::Speech::V2::RecognitionResponseMetadata

#transcript

deftranscript()->::Google::Cloud::Speech::V2::BatchRecognizeResults
Returns

#transcript=

deftranscript=(value)->::Google::Cloud::Speech::V2::BatchRecognizeResults
Parameter
Returns

#uri

defuri()->::String
Returns
  • (::String) — Deprecated. Use cloud_storage_result.native_format_uri instead.

#uri=

defuri=(value)->::String
Parameter
  • value (::String) — Deprecated. Use cloud_storage_result.native_format_uri instead.
Returns
  • (::String) — Deprecated. Use cloud_storage_result.native_format_uri instead.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.