• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Stay awhile and listen

Status
Not open for further replies.
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":

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.
 

Attachments

  • swt-1.0.w3x
    29.5 KB · Views: 35
Status
Not open for further replies.
Top