public class SpeakerLabelsResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Float |
confidence |
protected java.lang.Float |
from |
protected java.lang.Long |
speaker |
protected java.lang.Float |
to |
protected java.lang.Boolean |
xFinal |
Constructor and Description |
---|
SpeakerLabelsResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.Float |
getConfidence()
Gets the confidence.
|
java.lang.Float |
getFrom()
Gets the from.
|
java.lang.Long |
getSpeaker()
Gets the speaker.
|
java.lang.Float |
getTo()
Gets the to.
|
java.lang.Boolean |
isXFinal()
Gets the xFinal.
|
protected java.lang.Float from
protected java.lang.Float to
protected java.lang.Long speaker
protected java.lang.Float confidence
@SerializedName(value="final") protected java.lang.Boolean xFinal
public java.lang.Float getFrom()
The start time of a word from the transcript. The value matches the start time of a word from the `timestamps` array.
public java.lang.Float getTo()
The end time of a word from the transcript. The value matches the end time of a word from the `timestamps` array.
public java.lang.Long getSpeaker()
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.
public java.lang.Float getConfidence()
A score that indicates the service's confidence in its identification of the speaker in the range of 0.0 to 1.0.
public java.lang.Boolean isXFinal()
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.