Espeak voice

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

Post Reply
SubV
Above Average
Above Average
Posts: 26
Joined: Tue Oct 13, 2009 6:23 pm
Location: Witchspace

Espeak voice

Post by SubV »

Yesterday I tried the new PC build of Oolite, v1.76.1 and immediately noticed a very important addition: text-to-speech engine. However, it seems the default built-in voice cannot be changed.

Can I tweak config files to change the default voice to SAPI5, like Microsoft Anna? Also, there's plenty of excellent voices on the net, free for personal use, i.e. made by Cepstral. Btw, there's also Mac and Linux versions of these voices, too.

I already used these voices with Freespace Open (space combat simulation) and I must say that was a great experience.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Espeak voice

Post by another_commander »

SubV wrote:
Yesterday I tried the new PC build of Oolite, v1.76.1 and immediately noticed a very important addition: text-to-speech engine. However, it seems the default built-in voice cannot be changed.

Can I tweak config files to change the default voice to SAPI5, like Microsoft Anna? Also, there's plenty of excellent voices on the net, free for personal use, i.e. made by Cepstral. Btw, there's also Mac and Linux versions of these voices, too.

I already used these voices with Freespace Open (space combat simulation) and I must say that was a great experience.
I am sorry but the answer is no. You can change the voice gender in-game, you certainly tweak the config voice files in order to change pitch, breathing etc., but you cannot use the SAPI5 interface.

The eSpeak dll deployed with Oolite is a special build of the library, which enables asynchronous playback on Windows and hardcodes eSpeak's data files default folder to the game's Resources directory. Asynchronous playback on Windows with the official builds of the library is not an option and for using eSpeak in a game, it is absolutely required. Therefore, extensive hacking of the source files had to take place in order to make it work exactly like its Linux equivalent and use it with Oolite. Making it SAPI5 capable would require registering the library during installation of the game, attaching related keys to the registry and various other system touches, which go against the deployment philosophy of Oolite on the Windows platform, which is: the game should be fully contained inside its root folder, should be portable by just copying that folder over to another machine and, in theory, should not know anything about what happens outside said folder.

You can read more about the specifics of the above described hacks and the eSpeak source changes needed to get it built for Oolite in the document titled ExternalLibrariesSourceCodeChanges.txt, found in the Doc folder of Oolite's source distribution.
SubV
Above Average
Above Average
Posts: 26
Joined: Tue Oct 13, 2009 6:23 pm
Location: Witchspace

Re: Espeak voice

Post by SubV »

Thank you for the answer.
jacksy
Dangerous
Dangerous
Posts: 101
Joined: Sun Nov 25, 2012 1:57 pm
Location: Hull, Yorkshire, UK

Re: Espeak voice

Post by jacksy »

Is the game in continuous development?
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Espeak voice

Post by Gimi »

jacksy wrote:
Is the game in continuous development?
Oolite, yes.
Commit log at berlios here: http://svn.berlios.de/wsvn/oolite-linux

(Don't mind the linux thingy at the end. Same code base is used for all versions)
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
doctorfrog
Average
Average
Posts: 11
Joined: Thu Nov 08, 2012 11:06 pm

Re: Espeak voice

Post by doctorfrog »

BTW, I can confirm that Oolite is portable (directory-contained) on Windows 7.
Post Reply