Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: visy (the guy who made Lassi Quest) on Sat 08/07/2006 22:38:01

Title: PLUGIN: AGS_SAPISpeech - Text spoken by synthetic voice
Post by: visy (the guy who made Lassi Quest) on Sat 08/07/2006 22:38:01
EDIT: I'm quite sure it only works properly on Windows XP. (Works-for-me(tm)) for almost nobody. I'm not really sure why, but I'm looking into it.

Just a silly idea, really, but I implemented the Windows SAPI speech synth interface thingamabob as an AGS plugin.

It still needs a way to get the spoken line as a string or char[] or whatever, any help on this, so one could do like:

Speak("This is a text.");

from AGS.

Practical uses: Robots, computer terminals, Stephen Hawking as a character. Think: Speak("Hello", VOICE_FEMALE, SPEED_5);

Benefits: Lower filesize for speech using projects.
Downsides: Silly. Robotic. Useless. May only work on Windows XP or a Windows with SAPI installed.

Test program here (http://babibu.opintanner.fi/ags_speechtest.zip).

I'd like to hear from people who get the test program to work, including their hardware setups. It should Display and speak "Kill the president".  ::)
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: R4L on Sat 08/07/2006 22:40:16
I get a fatal error.
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: visy (the guy who made Lassi Quest) on Sat 08/07/2006 22:41:42
What is your Windows version?
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: Besh on Sat 08/07/2006 23:39:35
second Fatal Error!
I'm using WinXp sp2.


However this is an amazing idea!!!
Good luck!!!
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: visy (the guy who made Lassi Quest) on Sat 08/07/2006 23:41:01
Odd, seems that it only works on my PC.

I'm looking into it! ;)
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: Ashen on Sat 08/07/2006 23:47:01
And a third error.
The message, if it helps, is:

Quote
---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x00434226 ; program pointer is +9016, ACI version 2.72.920, gtags (0,0)

EDIT:
Sorry, WinXP sp2 as well.

EDIT2:
Ditto my sp1 laptop.
Must be the diodes on the left side.
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: Privateer Puddin' on Sat 08/07/2006 23:47:51
It works on my pc

xp sp2
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: DoorKnobHandle on Sat 08/07/2006 23:48:26
I get the same error Ashen got with Windows XP and SP2.
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: visy (the guy who made Lassi Quest) on Sun 09/07/2006 00:13:36
Okay! Puddin' got it working. I guess it has something to do with the library itself, then.

Do you have SAPI 5.1 installed separately?
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: Privateer Puddin' on Sun 09/07/2006 00:16:18
I'm pretty sure that I don't, and I can't find any traces of it.
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: pcj on Sun 09/07/2006 00:35:19
Same error for me, WinXP SP2+, SAPI is installed, latest version.
Title: Re: AGS_SAPISpeech - Your Speaking Plastic Pal Who's Fun To Be With
Post by: visy (the guy who made Lassi Quest) on Sun 09/07/2006 00:37:17
Okay... It may also have something to do with Allegro's sound and some soundcards.