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>) — 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>) — Sequential list of transcription results corresponding to sequential portions of audio.
Returns
- (::Array<::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) — 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) — Provides information on adaptation behavior in response
Returns
- (::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) — 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) — When available, billed audio seconds for the corresponding request.
Returns
- (::Google::Protobuf::Duration) — When available, billed audio seconds for the corresponding request.