Note: The following fields are mutually exclusive: gcs_output_config, inline_response_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: gcs_output_config, inline_response_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: gcs_output_config, inline_response_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: inline_response_config, gcs_output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: inline_response_config, gcs_output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: inline_response_config, gcs_output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
(::Google::Cloud::Speech::V2::OutputFormatConfig) — Optional. Configuration for the format of the results stored to output.
If unspecified transcripts will be written in the NATIVE format only.
value (::Google::Cloud::Speech::V2::OutputFormatConfig) — Optional. Configuration for the format of the results stored to output.
If unspecified transcripts will be written in the NATIVE format only.
Returns
(::Google::Cloud::Speech::V2::OutputFormatConfig) — Optional. Configuration for the format of the results stored to output.
If unspecified transcripts will be written in the NATIVE format only.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Speech-to-Text V2 API - Class Google::Cloud::Speech::V2::RecognitionOutputConfig (v1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-RecognitionOutputConfig)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-RecognitionOutputConfig) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::RecognitionOutputConfig.\n\nConfiguration options for the output(s) of recognition. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #gcs_output_config\n\n def gcs_output_config() -\u003e ::Google::Cloud::Speech::V2::GcsOutputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::GcsOutputConfig](./Google-Cloud-Speech-V2-GcsOutputConfig)) --- If this message is populated, recognition results are written to the provided Google Cloud Storage URI.\n\n\n Note: The following fields are mutually exclusive: `gcs_output_config`, `inline_response_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #gcs_output_config=\n\n def gcs_output_config=(value) -\u003e ::Google::Cloud::Speech::V2::GcsOutputConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::GcsOutputConfig](./Google-Cloud-Speech-V2-GcsOutputConfig)) --- If this message is populated, recognition results are written to the provided Google Cloud Storage URI.\n\n\nNote: The following fields are mutually exclusive: `gcs_output_config`, `inline_response_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::GcsOutputConfig](./Google-Cloud-Speech-V2-GcsOutputConfig)) --- If this message is populated, recognition results are written to the provided Google Cloud Storage URI.\n\n\n Note: The following fields are mutually exclusive: `gcs_output_config`, `inline_response_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #inline_response_config\n\n def inline_response_config() -\u003e ::Google::Cloud::Speech::V2::InlineOutputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::InlineOutputConfig](./Google-Cloud-Speech-V2-InlineOutputConfig)) --- If this message is populated, recognition results are provided in the [BatchRecognizeResponse](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-BatchRecognizeResponse \"Google::Cloud::Speech::V2::BatchRecognizeResponse (class)\") message of the Operation when completed. This is only supported when calling [BatchRecognize](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-Speech-Client#Google__Cloud__Speech__V2__Speech__Client_batch_recognize_instance_ \"Google::Cloud::Speech::V2::Speech::Client#batch_recognize (method)\") with just one audio file.\n\n\n Note: The following fields are mutually exclusive: `inline_response_config`, `gcs_output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #inline_response_config=\n\n def inline_response_config=(value) -\u003e ::Google::Cloud::Speech::V2::InlineOutputConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::InlineOutputConfig](./Google-Cloud-Speech-V2-InlineOutputConfig)) --- If this message is populated, recognition results are provided in the [BatchRecognizeResponse](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-BatchRecognizeResponse \"Google::Cloud::Speech::V2::BatchRecognizeResponse (class)\") message of the Operation when completed. This is only supported when calling [BatchRecognize](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-Speech-Client#Google__Cloud__Speech__V2__Speech__Client_batch_recognize_instance_ \"Google::Cloud::Speech::V2::Speech::Client#batch_recognize (method)\") with just one audio file.\n\n\nNote: The following fields are mutually exclusive: `inline_response_config`, `gcs_output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::InlineOutputConfig](./Google-Cloud-Speech-V2-InlineOutputConfig)) --- If this message is populated, recognition results are provided in the [BatchRecognizeResponse](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-BatchRecognizeResponse \"Google::Cloud::Speech::V2::BatchRecognizeResponse (class)\") message of the Operation when completed. This is only supported when calling [BatchRecognize](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-Speech-Client#Google__Cloud__Speech__V2__Speech__Client_batch_recognize_instance_ \"Google::Cloud::Speech::V2::Speech::Client#batch_recognize (method)\") with just one audio file.\n\n\n Note: The following fields are mutually exclusive: `inline_response_config`, `gcs_output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #output_format_config\n\n def output_format_config() -\u003e ::Google::Cloud::Speech::V2::OutputFormatConfig\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::OutputFormatConfig](./Google-Cloud-Speech-V2-OutputFormatConfig)) --- Optional. Configuration for the format of the results stored to `output`. If unspecified transcripts will be written in the `NATIVE` format only.\n\n### #output_format_config=\n\n def output_format_config=(value) -\u003e ::Google::Cloud::Speech::V2::OutputFormatConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::OutputFormatConfig](./Google-Cloud-Speech-V2-OutputFormatConfig)) --- Optional. Configuration for the format of the results stored to `output`. If unspecified transcripts will be written in the `NATIVE` format only. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::OutputFormatConfig](./Google-Cloud-Speech-V2-OutputFormatConfig)) --- Optional. Configuration for the format of the results stored to `output`. If unspecified transcripts will be written in the `NATIVE` format only."]]