Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: veggie_89 on Sun 05/08/2012 08:35:31

Title: [Solved] (Kind of.) Voice not playing.
Post by: veggie_89 on Sun 05/08/2012 08:35:31
I've created HERO1.WAV file and put it in my Speech sub-directory, I've created a script that says:
function hDoor_Talk()
{
cHero.Say("&1 OPEN SESAME!");
}
The game created a vox file and is now showing me options for controlling the voice, but I'm not getting any voice output. Any ideas as to what I could be doing wrong?
I also have a midi background music file which is playing fine.
Title: Re: Voice not playing.
Post by: veggie_89 on Mon 06/08/2012 05:01:18
Okay, So I was initially working with 24bit 44.1Khz .WAV files exported from Logic Pro with no success,(Stereo with nothing in the right channel Oops.) but after converting to a mono 92kbps MP3 file, everything worked fine. I'm not sure what specification was causing it not work, but if you're having this same problem, try going with a different audio format. Maybe someone could direct us to some more detailed specifications as to what AGS can support as far as wav files. :)
Title: Re: [Solved] (Kind of.) Voice not playing.
Post by: Gilbert on Mon 06/08/2012 06:09:52
Hmmm. Can you upload a small .WAV clip that doesn't work?
Title: Re: [Solved] (Kind of.) Voice not playing.
Post by: veggie_89 on Wed 15/08/2012 02:59:09
Sure, Here it is.

Example of Broken Audio .WAV file (http://www.cogentstudios.com/images/uploads/HERO1.wav)
Title: Re: [Solved] (Kind of.) Voice not playing.
Post by: Gilbert on Wed 15/08/2012 06:34:25
Alright. I've tested and the reason is this:
Quote from: veggie_89 on Mon 06/08/2012 05:01:18
24bit
Changing the WAV to 16-bit will work. I think the engine can only play 8- and 16-bit WAV samples.
Using MP3 or OGG instead may probably work better as they're handled by respective libraries.
There isn't much point in using WAV anyway (except during development, maybe) as they're just wasting disk space.
Title: Re: [Solved] (Kind of.) Voice not playing.
Post by: veggie_89 on Wed 15/08/2012 07:57:29
I agree. Thanks for clarifying that about the 24bit Wav Files.  :smiley: