Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: j-Hed on Sun 18/01/2004 22:55:51

Title: Can't Play speech!
Post by: j-Hed on Sun 18/01/2004 22:55:51
Hello again!

the room has a region (player stands on region - PlayAmbientSound) where you start on. That works fine but when you look at a hotspot on the wall the player should say "It's a hole."

DisplaySpeech (EGO, "&1 It's a hole");


The text is showing but there is no sound (the file is named EGO1.ogg).
I have tried to put StopChannel (1); <---(1 is the AmbientSound channel)
and displayspeech after but it's still no sound.

Please help!


Title: Re:Can't Play speech!
Post by: Gilbert on Mon 19/01/2004 02:20:47
Hmmm did other speech files play?

If not, then it's probably you didn't set the voice mode properly, try look at the SetVoiceMode() function.
Title: Re:Can't Play speech!
Post by: j-Hed on Mon 19/01/2004 17:45:52
Well I put - SetVoiceMode(1);  then DisplaySpeech etc. in - Look at hotspot window.
I tried putting - SetVoiceMode(1); in the global script at Game_start  also but it won't play the damn .ogg-file.
All other .ogg-files work but this is my first speech test ever so I probably missed something important.





Title: Re:Can't Play speech!
Post by: Ben on Mon 19/01/2004 22:29:15
Did you rebuild your VOX files before testing the game? You can do that from the "Game" menu, or by pressing ctrl+B.
Title: Re:Can't Play speech!
Post by: j-Hed on Tue 20/01/2004 12:10:44
Yes I did try to rebuild vox files before testing Game.

I have looked in the game map and the compiled map but there is no "speech.vox"-file.
Shouldn't it be one after I Rebuilded Vox files?
Title: Re:Can't Play speech!
Post by: j-Hed on Tue 20/01/2004 12:18:11
Hehe!
Solved it, the .ogg file was located in the compiled folder but when I put it in the Game folder it worked  :P :-[ :)

Thanks!