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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應