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

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.
  • resultEndTime (type: String.t, default: nil) - Time offset of the end of this result relative to the beginning of the audio.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.