Drag[en]gine Script Module DragonScript 1.32.1
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 .

◆ getName()

StringID Dragengine.SpeechAnimations.SpeechAnimationWord.getName ( )

Unique name.

◆ getPhonetics()

UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.getPhonetics ( )

Phonetics.

◆ new()

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

Creates a new speech animation phoneme.

Member Data Documentation

◆ pName

StringID Dragengine.SpeechAnimations.SpeechAnimationWord.pName

◆ pPhonetics

UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.pPhonetics

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