|
Drag[en]gine Script Module DragonScript 1.32.1
|
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 .
| StringID Dragengine.SpeechAnimations.SpeechAnimationWord.getName | ( | ) |
Unique name.
| UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.getPhonetics | ( | ) |
Phonetics.
| SpeechAnimationWord Dragengine.SpeechAnimations.SpeechAnimationWord.new | ( | StringID | name, |
| UnicodeString | phonetics | ||
| ) |
Creates a new speech animation phoneme.
| StringID Dragengine.SpeechAnimations.SpeechAnimationWord.pName |
| UnicodeString Dragengine.SpeechAnimations.SpeechAnimationWord.pPhonetics |