Class WordAlternativeResult

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.speech_to_text.v1.model.WordAlternativeResult
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class WordAlternativeResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An alternative hypothesis for a word from speech recognition results.
  • Constructor Details

    • WordAlternativeResult

      public WordAlternativeResult()
  • Method Details

    • getConfidence

      public Double getConfidence()
      Gets the confidence.

      A confidence score for the word alternative hypothesis in the range of 0.0 to 1.0.

      Returns:
      the confidence
    • getWord

      public String getWord()
      Gets the word.

      An alternative hypothesis for a word from the input audio.

      Returns:
      the word