Class: Google::Cloud::Speech::V1p1beta1::SpeechRecognitionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb

Overview

A speech recognition result corresponding to a portion of the audio.

Instance Attribute Summary collapse

Instance Attribute Details

#alternativesArray<Google::Cloud::Speech::V1p1beta1::SpeechRecognitionAlternative>

Returns Output only. May contain one or more recognition hypotheses (up to the maximum specified in +max_alternatives+). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.

Returns:

  • (Array<Google::Cloud::Speech::V1p1beta1::SpeechRecognitionAlternative>)

    Output only. May contain one or more recognition hypotheses (up to the maximum specified in +max_alternatives+). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.



643
# File 'lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 643

class SpeechRecognitionResult; end

#channel_tagInteger

Returns For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For audio_channel_count = N, its output values can range from '1' to 'N'.

Returns:

  • (Integer)

    For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For audio_channel_count = N, its output values can range from '1' to 'N'.



643
# File 'lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 643

class SpeechRecognitionResult; end

#language_codeString

Returns Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.

Returns:

  • (String)

    Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.



643
# File 'lib/google/cloud/speech/v1p1beta1/doc/google/cloud/speech/v1p1beta1/cloud_speech.rb', line 643

class SpeechRecognitionResult; end