Jump to content
Sign in to follow this  
Halochief89

Wav2Lip

Recommended Posts

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. confused_o.gif

Share this post


Link to post
Share on other sites
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. confused_o.gif

It's a little trickier than that

Check Here

Share this post


Link to post
Share on other sites

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" crazy_o.gif .

Share this post


Link to post
Share on other sites

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?  mad_o.gif

Share this post


Link to post
Share on other sites
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? mad_o.gif

I just tested and it works perfectly here huh.gif . Tried both with a waypoint and a trigger.

Is your ogg file 16bit mono?

Share this post


Link to post
Share on other sites
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?  mad_o.gif

I just tested and it works perfectly here huh.gif . 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

Ahem.. WAV to lip? You must use a wav to generate the lip, only after that you can convert the wav to ogg smile_o.gif .

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×