Class SpeakerLabelsResult

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

public class SpeakerLabelsResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Information about the speakers from speech recognition results.
  • Constructor Details

    • SpeakerLabelsResult

      public SpeakerLabelsResult()
  • Method Details

    • getFrom

      public Float getFrom()
      Gets the from.

      The start time of a word from the transcript. The value matches the start time of a word from the `timestamps` array.

      Returns:
      the from
    • getTo

      public Float getTo()
      Gets the to.

      The end time of a word from the transcript. The value matches the end time of a word from the `timestamps` array.

      Returns:
      the to
    • getSpeaker

      public Long getSpeaker()
      Gets the speaker.

      The numeric identifier that the service assigns to a speaker from the audio. Speaker IDs begin at `0` initially but can evolve and change across interim results (if supported by the method) and between interim and final results as the service processes the audio. They are not guaranteed to be sequential, contiguous, or ordered.

      Returns:
      the speaker
    • getConfidence

      public Float getConfidence()
      Gets the confidence.

      A score that indicates the service's confidence in its identification of the speaker in the range of 0.0 to 1.0.

      Returns:
      the confidence
    • isXFinal

      public Boolean isXFinal()
      Gets the xFinal.

      An indication of whether the service might further change word and speaker-label results. A value of `true` means that the service guarantees not to send any further updates for the current or any preceding results; `false` means that the service might send further updates to the results.

      Returns:
      the xFinal