Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.SpeechAnimations.SpeechAnimationWord Class Reference
Inheritance diagram for Dragengine.SpeechAnimations.SpeechAnimationWord:

Public Member Functions

float getEstimatedSpeakLength (float phoneticLength, SpeechAnimation speechAnimation)
 Estimates speak length in seconds.
StringID getName ()
UnicodeString getPhonetics ()
SpeechAnimationWord new (StringID name, UnicodeString phonetics)

Public Attributes

StringID pName
UnicodeString pPhonetics

Detailed Description

Speech animation Word.

Member Function Documentation

◆ getEstimatedSpeakLength()

float Dragengine.SpeechAnimations.SpeechAnimationWord.getEstimatedSpeakLength ( float phoneticLength,
SpeechAnimation speechAnimation )

Estimates speak length in seconds.

Version
1.25

If speechAnimation is null uses count of phonetics multiplied by phoneticLength to calculate the estimated length. If SpeeachAnimation is not null uses length of phoneme matching phonetics to improve the estimation.

Using null as speechAnimation is faster. Improved estimation requires properly set phoneme speak length.

Recommended value for phoneticLength is 0.075 .

References getEstimatedSpeakLength(), and pPhonetics.

Referenced by getEstimatedSpeakLength().

◆ getName()

StringID Dragengine.SpeechAnimations.SpeechAnimationWord.getName ( )

Unique name.

References pName, and pPhonetics.

Referenced by getPhonetics().

◆ getPhonetics()

UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.getPhonetics ( )

Phonetics.

References getName(), getPhonetics(), pName, and pPhonetics.

Referenced by getPhonetics().

◆ new()

SpeechAnimationWord Dragengine.SpeechAnimations.SpeechAnimationWord.new ( StringID name,
UnicodeString phonetics )

Creates a new speech animation phoneme.

References new().

Referenced by new().

Member Data Documentation

◆ pName

StringID Dragengine.SpeechAnimations.SpeechAnimationWord.pName

Referenced by getName(), and getPhonetics().

◆ pPhonetics

UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.pPhonetics

The documentation for this class was generated from the following file: