Class SpeechResults

java.lang.Object
com.vonage.client.incoming.SpeechResults

@Deprecated public class SpeechResults extends Object
Deprecated.
  • Constructor Details

  • Method Details

    • getRecordingUrl

      public URI getRecordingUrl()
      Deprecated.
      Speech recording URL. Included if the saveAudio flag is set to true in the input action. Requires JWT authorization for downloading see Download a Recording documentation for details.
      Returns:
      The recording URL, or null if absent.
      Since:
      8.2.0
    • getError

      public String getError()
      Deprecated.
      Error message.
      Returns:
      The error message, or null if absent / not applicable.
    • getTimeoutReason

      Deprecated.
      Indicates if the input ended when user stopped speaking, by max duration timeout or if the user didn't say anything.
      Returns:
      Reason for the timeout as an enum.
    • setTimeoutReason

      Deprecated.
      This setter will be removed in a future release.
      Parameters:
      timeoutReason - Indicates whether the input ended when the user stopped speaking, by the max duration timeout, or if the user didn't say anything.
    • getResults

      Deprecated.
      The recognised text objects.
      Returns:
      The collection of transcript texts, or null if there are none.
    • setResults

      @Deprecated public void setResults(Collection<Result> results)
      Deprecated.
      This setter will be removed in a future release.
      Parameters:
      results - list of speech recognition results that displays the words(s) that the user spoke and the likelihood that the recognized word(s) in the list where the actual word(s) that the user spoke.