GoogleApi.Speech.V1.Model.SpeechRecognitionResult (google_api_speech v0.24.0) View Source

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

Attributes

  • alternatives (type: list(GoogleApi.Speech.V1.Model.SpeechRecognitionAlternative.t), default: nil) - 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.
  • channelTag (type: integer(), default: nil) - 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'.
  • languageCode (type: String.t, default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Speech.V1.Model.SpeechRecognitionResult{
  alternatives:
    [GoogleApi.Speech.V1.Model.SpeechRecognitionAlternative.t()] | nil,
  channelTag: integer() | nil,
  languageCode: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.