Halochief89 0 Posted January 29, 2008 Sorry I'm still almost half way to understand each control but how do you get a soldier to wav2lip I have a wav file for my soldier to speak but I've tried every init line I cant conjure up. Share this post Link to post Share on other sites
hoz 0 Posted January 29, 2008 Moving to mission editing... Share this post Link to post Share on other sites
froggyluv 2136 Posted January 29, 2008 Sorry I'm still almost half way to understand each control but how do you get a soldier to wav2lip I have a wav file for my soldier to speak but I've tried every init line I cant conjure up. It's a little trickier than that Check Here Share this post Link to post Share on other sites
Heatseeker 0 Posted January 29, 2008 Place wav2lip in C:/ Drag and drop the wav in wav2lip, it then generates the lip file. place both files in a sound folder inside your mission folder. ogg format gives better dynamic range, you might want to convert your wav to ogg with a nice free tool called audacity. Sound must be 16-bit mono (i think). Add the sound to your description.ext file. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgSounds { sounds[] = {}; class meow { name = "meow"; sound[] = {"meow.ogg", db+10, 1.0}; titles[] = {}; }; }; Now use the say comand. soldier say "meow" . Share this post Link to post Share on other sites
Albert Schweitzer 10 Posted May 25, 2008 I seem to encounter problems with this, even in a simple example mission 1) created ogg file 2) created lip file 3) made sure both files carry the same name (meow) 4) created folder "sound" in the examplemission folder 5) put both files into the sound foler 6) created description.ext file 7) entered: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgSounds { sounds[] = {}; Â Â Â class meow { name = "meow"; sound[] = {"meow.ogg", db+10, 1.0}; titles[] = {}; }; }; 9.) created soldiers with the name hans 8.) created trigger with: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hans say "meow" nothing happens. Any advise anyone? Â Share this post Link to post Share on other sites
Heatseeker 0 Posted May 25, 2008 I seem to encounter problems with this, even in a simple example mission1) created ogg file 2) created lip file 3) made sure both files carry the same name (meow) 4) created folder "sound" in the examplemission folder 5) put both files into the sound foler 6) created description.ext file 7) entered: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgSounds { sounds[] = {}; class meow { name = "meow"; sound[] = {"meow.ogg", db+10, 1.0}; titles[] = {}; }; }; 9.) created soldiers with the name hans 8.) created trigger with: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hans say "meow" nothing happens. Any advise anyone? I just tested and it works perfectly here . Tried both with a waypoint and a trigger. Is your ogg file 16bit mono? Share this post Link to post Share on other sites
Albert Schweitzer 10 Posted May 25, 2008 I seem to encounter problems with this, even in a simple example mission1) created ogg file 2) created lip file 3) made sure both files carry the same name (meow) 4) created folder "sound" in the examplemission folder 5) put both files into the sound foler 6) created description.ext file 7) entered: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgSounds { sounds[] = {}; Â Â Â class meow { name = "meow"; sound[] = {"meow.ogg", db+10, 1.0}; titles[] = {}; }; }; 9.) created soldiers with the name hans 8.) created trigger with: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hans say "meow" nothing happens. Any advise anyone? Â I just tested and it works perfectly here . Tried both with a waypoint and a trigger. Is your ogg file 16bit mono? Thats what I ask myself too. But wavetolip.exe accepted the file and created a corresponding lip file. So my assumption was that the ogg must be correctly edited. Besides, wouldnt the lip file still work even if the ogg is corrupt? Share this post Link to post Share on other sites
Heatseeker 0 Posted May 25, 2008 Ahem.. WAV to lip? You must use a wav to generate the lip, only after that you can convert the wav to ogg . Share this post Link to post Share on other sites
Albert Schweitzer 10 Posted May 25, 2008 But it sais >>WaveToLip is an application that generates a lip files (*.lip) from wav, ogg or wss audio files supported by Bohemia Interactive's engine.<< and it works. the lip file has a clear and clean structure. Okay, with a wav file it seems to work. strange! I checked my ogg file again and it was clearly 16 bit and Mono. It seems it is all about the caching. I cant just change the audio file and expect it to work right away. Only if I leave the editor and go back into the mission again it works. Share this post Link to post Share on other sites