|
Drag[en]gine Script Module DragonScript 1.35
|
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 |
Speech animation Word.
| float Dragengine.SpeechAnimations.SpeechAnimationWord.getEstimatedSpeakLength | ( | float | phoneticLength, |
| SpeechAnimation | speechAnimation ) |
Estimates speak length in seconds.
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().
| StringID Dragengine.SpeechAnimations.SpeechAnimationWord.getName | ( | ) |
| UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.getPhonetics | ( | ) |
Phonetics.
References getName(), getPhonetics(), pName, and pPhonetics.
Referenced by getPhonetics().
| SpeechAnimationWord Dragengine.SpeechAnimations.SpeechAnimationWord.new | ( | StringID | name, |
| UnicodeString | phonetics ) |
| StringID Dragengine.SpeechAnimations.SpeechAnimationWord.pName |
Referenced by getName(), and getPhonetics().
| UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.pPhonetics |
Referenced by getEstimatedSpeakLength(), getName(), and getPhonetics().