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". ::)
I get a fatal error.
What is your Windows version?
second Fatal Error!
I'm using WinXp sp2.
However this is an amazing idea!!!
Good luck!!!
Odd, seems that it only works on my PC.
I'm looking into it! ;)
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.
It works on my pc
xp sp2
I get the same error Ashen got with Windows XP and SP2.
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?
I'm pretty sure that I don't, and I can't find any traces of it.
Same error for me, WinXP SP2+, SAPI is installed, latest version.
Okay... It may also have something to do with Allegro's sound and some soundcards.