TTtsSegment Class Reference

class TTtsSegment

Class to store segment information

nssttscommon.lib
Since
2.8

Constructor & Destructor Documentation

TTtsSegment(const TTtsStyleID, const TDesC &, const TDesC8 &, const TTimeIntervalMicroSeconds32 &)

IMPORT_CTTtsSegment(const TTtsStyleIDaStyleID,
const TDesC &aText =  KNullDesC ,
const TDesC8 &aPhonemeSequence =  KNullDesC8 ,
const TTimeIntervalMicroSeconds32 &aTrailingSilenceDuration = KTtsUndefinedDuration
)
C++ default constructor.
Since
2.8

Parameters

const TTtsStyleID aStyleIDIndentifier of style.
const TDesC & aText =  KNullDesC Text for segment
const TDesC8 & aPhonemeSequence =  KNullDesC8 Corresponding phoneme sequence for text
const TTimeIntervalMicroSeconds32 & aTrailingSilenceDuration = KTtsUndefinedDurationThe duration of trailing silence.

Member Functions Documentation

PhonemeSequencePtr()

IMPORT_C const TDesC8 &PhonemeSequencePtr()const
Returns phoneme sequence pointer of the segment.
Since
2.8

ResetStyle()

IMPORT_C voidResetStyle()

Resets previously set style and segment will use the style ID.

Since
3.1

SetPhonemeSequencePtr(const TDesC8 &)

IMPORT_C voidSetPhonemeSequencePtr(const TDesC8 &aPhonemeSequence)
Sets phoneme sequence pointer. The phoneme sequence cannot be deleted during the life time of this object.
Since
2.8

Parameters

const TDesC8 & aPhonemeSequencePhoneme sequence.

SetStyle(TTtsStyle &)

IMPORT_C voidSetStyle(TTtsStyle &aStyle)

Sets style object for segment.

Since
3.1

Parameters

TTtsStyle & aStyleStyle reference.

SetStyleID(TTtsStyleID)

IMPORT_C voidSetStyleID(TTtsStyleIDaStyleID)
Sets style for segment. The style cannot be deleted during this object life time.
Since
2.8

Parameters

TTtsStyleID aStyleIDThe identifier of the style.

SetTextPtr(const TDesC &)

IMPORT_C voidSetTextPtr(const TDesC &aText)
Sets text pointer. The text cannot be deleted during the life time of this object.
Since
2.8

Parameters

const TDesC & aTextText.

SetTrailingSilenceL(const TTimeIntervalMicroSeconds32 &)

IMPORT_C voidSetTrailingSilenceL(const TTimeIntervalMicroSeconds32 &aDuration)
Sets duration of trailing silence.
Since
2.8

Parameters

const TTimeIntervalMicroSeconds32 & aDurationDuration of silence.

StyleID()

IMPORT_C TTtsStyleIDStyleID()const
Returns identifier of used style.
Since
2.8

StyleL()

IMPORT_C TTtsStyle &StyleL()

Returns style object.

Since
3.1

TextPtr()

IMPORT_C const TDesC &TextPtr()const
Returns text pointer of the segment.
Since
2.8

TrailingSilence()

IMPORT_C const TTimeIntervalMicroSeconds32 &TrailingSilence()const
Gets duration of trailing silence.
Since
2.8

Member Data Documentation

TBool iIncludesStyle

TBool iIncludesStyle[private]

TPtrC8 iPhonemeSequence

TPtrC8 iPhonemeSequence[private]

TTtsStyle iStyle

TTtsStyle iStyle[private]

TTtsStyleID iStyleID

TTtsStyleID iStyleID[private]

TPtrC iText

TPtrC iText[private]

TTimeIntervalMicroSeconds32 iTrailingSilenceDuration

TTimeIntervalMicroSeconds32 iTrailingSilenceDuration[private]