GoogleApi.Speech.V1.Model.SpeechRecognitionResult (google_api_speech v0.23.2-beta-0.0.5) 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'.

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() | nil
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.