SpeechSynthesisWordBoundaryEventArgs Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SpeechSynthesisWordBoundaryEventArgs
- com.
public class SpeechSynthesisWordBoundaryEventArgs
Defines contents of speech synthesis word boundary event. Added in version 1.7.0
Method Summary
Modifier and Type | Method and Description |
---|---|
long |
getAudioOffset()
Specifies current word's binary offset in output audio, by ticks (100ns). |
Speech |
getBoundaryType()
Specifies the boundary type. |
long |
getDuration()
Specifies the audio duration of current event, by ticks (100ns). |
java.lang.String |
getResultId()
Gets the unique ID of the result. |
java.lang.String |
getText()
Specifies the text. |
long |
getTextOffset()
Specifies current word's text offset in input text, by characters. |
long |
getWordLength()
Specifies current word's length, by characters. |
Methods inherited from java.lang.Object
Method Details
getAudioOffset
public long getAudioOffset()
Specifies current word's binary offset in output audio, by ticks (100ns).
Returns:
getBoundaryType
public SpeechSynthesisBoundaryType getBoundaryType()
Specifies the boundary type. Added in version 1.21.0
Returns:
getDuration
public long getDuration()
Specifies the audio duration of current event, by ticks (100ns). Added in version 1.21.0
Returns:
getResultId
public String getResultId()
Gets the unique ID of the result. Added in version 1.25.0
Returns:
getText
public String getText()
Specifies the text. Added in version 1.21.0
Returns:
getTextOffset
public long getTextOffset()
Specifies current word's text offset in input text, by characters.
Returns:
getWordLength
public long getWordLength()
Specifies current word's length, by characters.
Returns:
Applies to
Azure SDK for Java