Jump to content

Recommended Posts

Posted

A question that has been quite a while on my fingers to ask...

 

DCSW comes with a set of lua APIs to play sound files.

So, it is a great medium to add sound to your missions.

 

That being said, sometimes i feel it is needed to be able to make speech that is a combination of several sound files sticked together. One scenario is where i want to be able to add speech consisting of route coordinates (numbers)...

 

The problem is that the sound files don't play sequentially, they are played in parallel once the API is called... This is quite annoying. Does anybody know a technique how to apply sound like speech sequencing sound files in a specific order?

 

Sven

[TABLE][sIGPIC][/sIGPIC]|

[/TABLE]

Posted

A while back I added multiple file playback support for the mist messages. Basically its given a table of sound files to play and at the time you want the audio to play at. When I updated On Station to us lua I embedded a list of sound files and a value for how long the sound file is. The script that populates messages checks to see if a sound file exists for a given phrase and then inserts it to play at a specific time stamp. It then uses the mist "multSound" feature for playback. But you could accomplish the same thing by scheduling a function to play the sounds accordingly. This is what part of the sound file table looks like. Over and Out both have added time to the end of the message to create a natural pause.

 

sFiles[#sFiles + 1] = {file = 'tusk_complete.wav', len = 0.6, text = 'complete', voice = 'tusk'}
sFiles[#sFiles + 1] = {file = 'tusk_out.wav', len = 0.9, text = 'out', voice = 'tusk'}
sFiles[#sFiles + 1] = {file = 'tusk_Over.wav', len = 1.5, text = 'over', voice = 'tusk'}

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...