# Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::RecognizeResponse (v0.30.0)

0.30.0 (latest) 0.29.1 0.28.0 0.27.1 0.26.0 0.25.0 0.24.1 0.23.0 0.22.0 0.21.1 0.20.2 0.19.0 0.18.1 0.17.1 0.16.0 0.15.3 0.14.0 0.13.0 0.12.4 Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::RecognizeResponse.

The only message returned to the client by the `Recognize` method. It
contains the result as zero or more sequential `SpeechRecognitionResult`
messages.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #request_id

    def request_id() -> ::Integer

**Returns**

- (::Integer) --- The ID associated with the request. This is a unique ID specific only to the given request.

### #request_id=

    def request_id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The ID associated with the request. This is a unique ID specific only to the given request.
**Returns**

- (::Integer) --- The ID associated with the request. This is a unique ID specific only to the given request.

### #results

    def results() -> ::Array<::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult>

**Returns**

- (::Array\<[::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechRecognitionResult)\>) --- Sequential list of transcription results corresponding to sequential portions of audio.

### #results=

    def results=(value) -> ::Array<::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechRecognitionResult)\>) --- Sequential list of transcription results corresponding to sequential portions of audio.
**Returns**

- (::Array\<[::Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechRecognitionResult)\>) --- Sequential list of transcription results corresponding to sequential portions of audio.

### #speech_adaptation_info

    def speech_adaptation_info() -> ::Google::Cloud::Speech::V1p1beta1::SpeechAdaptationInfo

**Returns**

- ([::Google::Cloud::Speech::V1p1beta1::SpeechAdaptationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechAdaptationInfo)) --- Provides information on adaptation behavior in response

### #speech_adaptation_info=

    def speech_adaptation_info=(value) -> ::Google::Cloud::Speech::V1p1beta1::SpeechAdaptationInfo

**Parameter**

- **value** ([::Google::Cloud::Speech::V1p1beta1::SpeechAdaptationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechAdaptationInfo)) --- Provides information on adaptation behavior in response
**Returns**

- ([::Google::Cloud::Speech::V1p1beta1::SpeechAdaptationInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-SpeechAdaptationInfo)) --- Provides information on adaptation behavior in response

### #total_billed_time

    def total_billed_time() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Protobuf-Duration)) --- When available, billed audio seconds for the corresponding request.

### #total_billed_time=

    def total_billed_time=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Protobuf-Duration)) --- When available, billed audio seconds for the corresponding request.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Protobuf-Duration)) --- When available, billed audio seconds for the corresponding request.

### #using_legacy_models

    def using_legacy_models() -> ::Boolean

**Returns**

- (::Boolean) --- Whether request used legacy asr models (was not automatically migrated to use conformer models).

### #using_legacy_models=

    def using_legacy_models=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether request used legacy asr models (was not automatically migrated to use conformer models).
**Returns**

- (::Boolean) --- Whether request used legacy asr models (was not automatically migrated to use conformer models).