Ideally I'd use something like the JNI or JNA to wrap SAPI directly,
but I think using a VB Script is definitely the easiest way to go
about it in your case. I'm no expert on this topic, but it sounds like
something that is worth a try.
The only downside to this I can see is that SAPI tends to break quite
a lot in my experience. I don't know why, but some peopel install and
then uninstall certain third-party voices which ends up breaking SAPI
completely. When that happens it can be a real tech support issue
helping them getting SAPI working correctly again. It is a nice
technology when it works, but when it doesn't it can be a major pain
in the butt.
On 6/19/10, John Bannick <jbann...@7128.com> wrote:
> Thomas or any other major coder out there,
> Please give me your opinion of a possible technical solution to getting
> SAPI into our games.
> I recently discovered that Windows XP and later include the ability to
> run Visual Basic scripts from the DOS command line.
> Also, I recently discovered that said VB Scripts can speak SAPI voices.
> Thirdly, I can invoke VB from within a Java app.
> I wrote an experimental Java program that does just that.
> It seems that we could ship our games with a simple VB script that they
> invoke, and Voila! we have SAPI speech.
> What do you think?
> As both a game developer and game player, what are the negatives, if any?
> Gamers mailing list __ Gamers@audyssey.org
> If you want to leave the list, send E-mail to
> You can make changes or update your subscription via the web, at
> All messages are archived and can be searched and read at
> If you have any questions or concerns regarding the management of the list,
> please send E-mail to gamers-ow...@audyssey.org.
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
All messages are archived and can be searched and read at
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.