[Solved] (Kind of.) Voice not playing.

Started by veggie_89, Sun 05/08/2012 08:35:31

Previous topic - Next topic

veggie_89

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.
- Reggie

veggie_89

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. :)
- Reggie

Gilbert

Hmmm. Can you upload a small .WAV clip that doesn't work?

veggie_89

- Reggie

Gilbert

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.

veggie_89

I agree. Thanks for clarifying that about the 24bit Wav Files.  :smiley:
- Reggie

SMF spam blocked by CleanTalk