Class SPXSpeechSynthesisWordBoundaryEventArgs

Declaration

@class SPXSpeechSynthesisWordBoundaryEventArgs : NSObject;

Description

Defines the payload of speech synthesis word boundary event.

Added in version 1.7.0

Properties

resultId

@property (readonly, copy, atomic) NSString * _Nonnull resultId;

The result identifier.

Added in version 1.25.0

audioOffset

@property (readonly, atomic) NSUInteger audioOffset;

Word boundary audio offset, in ticks (100 nanoseconds).

duration

@property (readonly, atomic) NSTimeInterval duration;

Time duration of the audio.

Added in version 1.21.0.

textOffset

@property (readonly, atomic) NSUInteger textOffset;

Word boundary text offset.

wordLength

@property (readonly, atomic) NSUInteger wordLength;

Word boundary word length.

text

@property (readonly, copy, atomic) NSString * _Nonnull text;

The text.

Added in version 1.21.0

boundaryType

@property (readonly, atomic) SPXSpeechSynthesisBoundaryType boundaryType;

Word boundary type.

Added in version 1.21.0.