IBM Speech to Text v0.3.0 IBMSpeechToText.Response View Source

Elixir representation of response body from the Speech to Text API. Described here in "Response" part

Link to this section Summary

Functions

Parse JSON response from the API into struct IBMSpeechToText.Response

Link to this section Types

Link to this type

t() View Source
t() :: %IBMSpeechToText.Response{
  result_index: non_neg_integer(),
  results: [IBMSpeechToText.RecognitionResult.t()],
  speaker_labels: [IBMSpeechToText.SpeakerLabelsResult.t()],
  warnings: [String.t()]
}

Link to this section Functions

Link to this function

from_json(input) View Source
from_json(String.t()) ::
  {:ok, IBMSpeechToText.Response.t()}
  | {:ok, :listening}
  | {:error, String.t()}
  | {:error, Jason.DecodeError.t()}

Parse JSON response from the API into struct IBMSpeechToText.Response