- Joined
- Nov 7, 2014
- Messages
- 571
First go and watch this video (no rick-rolling, I promise), because it explains the idea nicely.
This is an attempt at doing that.
The way it works is that you first have to define a "word set":
after that you simply call the "say" function:
The above should play the sound of 'word1', wait for 1.0 second, then play 'word2', then 'word3' with pitch set to 0.85, and finally 'word4' with volume set to 127.
This is an attempt at doing that.
The way it works is that you first have to define a "word set":
JASS:
globals
integer my_word_set
endglobals
...
set my_word_set = swt_begin()
call swt_word("word1", 0.0, 0.0, "path\\to\\some-sound-file-1.wav")
call swt_word("word2", 0.0, 1.0, "path\\to\\some-sound-file-2.wav")
call swt_word("word3", 1.0, 1.5, "path\\to\\some-sound-file-2.wav")
call swt_word("word4", 2.71, 3.14, "path\\to\\some-sound-file-2.wav")
call swt_end()
...
after that you simply call the "say" function:
JASS:
call swt_say(my_word_set, "word1 [w 1.0] word2 word3(p:0.85) word4(v:127)")
The above should play the sound of 'word1', wait for 1.0 second, then play 'word2', then 'word3' with pitch set to 0.85, and finally 'word4' with volume set to 127.