你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SpeechSynthesisWordBoundaryEventArgs Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.SpeechSynthesisWordBoundaryEventArgs

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).

SpeechSynthesisBoundaryType 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

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).

getBoundaryType

public SpeechSynthesisBoundaryType getBoundaryType()

Specifies the boundary type. Added in version 1.21.0

Returns:

The boundary type.

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).

getResultId

public String getResultId()

Gets the unique ID of the result. Added in version 1.25.0

Returns:

Specifies unique ID of the result.

getText

public String getText()

Specifies the text. Added in version 1.21.0

Returns:

The text.

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.

Applies to