Author Topic: Speech doesn't work in 2.72 (SOLVED)  (Read 257 times)  Share 

Speech doesn't work in 2.72 (SOLVED)
« on: 08 Mar 2010, 10:27 »
I keep thinking I must be missing something out here, but I just can't get speech files to work on AGS 2.72. Searching the forums got me this and this but neither had a conclusive solution.

To lay out my problem: I'm testing speech with one file, which I've named GIUS001.ogg (I always have file extensions on, so I know it's most definitely an .ogg). The dialog goes like this:

[code]GIUSEPPE: &001 Hello, Martin.[/code]

I put the GIUS001.ogg file in the Speech folder in the game folder, and rebuild VOX files. A speech.vox file is generated in the Compiled folder. At 149KB it's a little over three times the size of the original 38KB .ogg. I figure everything looks right, so I run the test. Nothing. Acts just like it did without the speech file.

I tried it with a Say command too, and it didn't work either.

Any help or insight would be greatly appreciated! My actors have worked really hard and I really don't want to give up on this.
« Last Edit: 10 Mar 2010, 05:22 by auriond »

barefoot

  • Guitar Man
    • I can help with web design
    •  
Re: Speech doesn't work in 2.72
« Reply #1 on: 08 Mar 2010, 12:43 »
Check out this link as well as the Manual you have:

http://www.bigbluecup.com/manual/Voice%20speech.htm

Seriously recommend you upgrade to 3.1 at somepoint!

All speech files must start with the first 4 characters of the player's scriptname who is saying it.. then put a number.

IE    cSim1.ogg     cTom2.ogg    cBen1.ogg   etc

In Room put your script like this example:

cSimon.Say("&1 Hi! How are you?");    THIS WILL PLAY cSim1.ogg
cTom.Say("&2 I'm fine.");                      THIS WILL PLAY cTom2.ogg

make sure the ogg files go into your Game (Not complied) folder (2.6/2.72 versions), then rebuild VOX file.  Put in Speech Folder if using 3.1

Hope this helps.

Barefoot


« Last Edit: 08 Mar 2010, 13:04 by barefoot »
I May Not Be Perfect but I Have A Big Heart ..

monkey_05_06

  • AGS Project Admins
  • Has left the building.
Re: Speech doesn't work in 2.72
« Reply #2 on: 08 Mar 2010, 15:28 »
I think the problem is that AGS doesn't (I believe) support leading zeroes in the name of your speech files. So just remove the leading zeroes (from the speech file and the speech line) and see if that makes a difference.
Let's be honest. Most people suck at coding. I suck at coding, but at least my code is readable. To Hell with anyone too lazy to maintain consistent formatting in their code. I could deal with bad interfaces and structure if I could even read your horrible code. And that's putting it nicely. -monkey

Re: Speech doesn't work in 2.72 [SOLVED]
« Reply #3 on: 08 Mar 2010, 22:06 »
That worked! Thanks Monkey. Odd because I could have sworn I did try removing the leading zeroes before (I even have a file named GIUS2.ogg in the speech folder). But hooray! It works now! :D