Jump to content
Sign in to follow this  
Cyper

Voice/dialog

Recommended Posts

So...

I need a lot of dialog and other sound effects for an upcoming campaign but it does not work for me. I have been searching for various solutions and this is what I have done so far.

1. I converted the soundfile to .wav

2. I used Audacity and set the file to mono, and then to 16bit.

3. I saved the file as Ogg Vorbis.

4. I created the sound-folder

5. I added this description:


showCompass = 0;
showGPS = 0;
showWatch = 0;

class CfgSounds
{
(.ogg files without the .ogg extension)
sounds[] = {Siberiahell2};


class Siberiahell2
{
	name = "Siberiahell2";
	sound[] = {\sound\Siberiahell2.ogg, db + 0, 1.0};
	titles[] = {0, ""};
};
};

I tried to activate the sound via a trigger, but there was no sound. I also tried this say "siberiahell" but I did not hear anything. The file appear in Voice. The game reads the file - at least I think so - because there is no error.

Any suggestions how to fix this would be greatly appreciated. :unhappy:

Share this post


Link to post
Share on other sites

I may not be 100% on this, as I have only started with custom sounds only in the past two weeks. But mine looks like this;

class castle2
{
name = "castle2"; // Name for mission editor
sound[] = {\sounds\castle2.ogg, 0.4, 1.0};
titles[] = {0, ""};
};

And in the trigger I call it with player say ["castle2",3]

Is what I use to call it & works.

Think you forgot the [ ] around the name & volume. Also not sure the db + is needed in the description. I can't be 100% on that, someone may want to back that up.

More info here; http://community.bistudio.com/wiki/say

Share this post


Link to post
Share on other sites

The sound seems not to be read when I used that script. There is no error message, but now it doesn't appear in the trigger menu.

Share this post


Link to post
Share on other sites

Does anyone have a solution for my problem?

Because I really need environmental sounds aswell as voices.

Share this post


Link to post
Share on other sites

Have you tried

player say "Siberiahell2"

Also whenever you edit description.ext you need to do a Ctrl+S in the editor for the change to apply before you preview.

Share this post


Link to post
Share on other sites

The format for the sound would be the following:


sound[] = {"\sound\Siberiahell2.ogg", 1, 1};

"Filename", volume, pitch

Use the classname when referring to the sound, so something like this:

playSound Siberiahell2

Also The (.ogg files without .ogg extension) isn't a valid comment and might be processed by the .ext file. To prevent this add // infront of that line.

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  

×