Class SpeechSynthesisWordBoundaryEventArgs
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SpeechSynthesisWordBoundaryEventArgs
-
public class SpeechSynthesisWordBoundaryEventArgs extends Object
Defines contents of speech synthesis word boundary event. Added in version 1.7.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAudioOffset()Specifies current word's binary offset in output audio, by ticks (100ns).SpeechSynthesisBoundaryTypegetBoundaryType()Specifies the boundary type.longgetDuration()Specifies the audio duration of current event, by ticks (100ns).StringgetResultId()Gets the unique ID of the result.StringgetText()Specifies the text.longgetTextOffset()Specifies current word's text offset in input text, by characters.longgetWordLength()Specifies current word's length, by characters.
-
-
-
Method Detail
-
getResultId
public String getResultId()
Gets the unique ID of the result. Added in version 1.25.0- Returns:
- Specifies unique ID of the result.
-
getAudioOffset
public long getAudioOffset()
Specifies current word's binary offset in output audio, by ticks (100ns).- Returns:
- Current word's binary offset in output audio, by ticks (100ns).
-
getDuration
public long getDuration()
Specifies the audio duration of current event, by ticks (100ns). Added in version 1.21.0- Returns:
- Audio duration of current event, by ticks (100ns).
-
getTextOffset
public long getTextOffset()
Specifies current word's text offset in input text, by characters.- Returns:
- Current word's text offset in input text, by characters.
-
getWordLength
public long getWordLength()
Specifies current word's length, by characters.- Returns:
- Current word's length, by characters.
-
getText
public String getText()
Specifies the text. Added in version 1.21.0- Returns:
- The text.
-
getBoundaryType
public SpeechSynthesisBoundaryType getBoundaryType()
Specifies the boundary type. Added in version 1.21.0- Returns:
- The boundary type.
-
-