I have gotten the open source TTS program Espeak working from blender. My blender game engine can talk to me
Bad news :
The only problem is that when it loads the command line version of Espeak the game engine freezes until it is done reading the script.
Here is how I have it set up, I have this script wired to a keypress sensor:
Code: [LEFT]import os
os.system(“espeak -f scriptname.txt”)[/LEFT]
Is there some way to just tell blender to send off that command, and not wait until the reading is complete to continue with the game?
here is my test file :
Here is a link to Espeak, you will need this installed for espeak to function properly.
Can we use “subprocess.call()” in the BGE?
how about “subprocess.Popen()” ?
would those even help?
This would be awesome to get running smooth with blender.
Just think!, rather than having hundreds of megabytes of speech sound files for an RPG game, you could have just simple text scripts for the TTS system to recite for the NPC’s dialogs, and for narrating parts of the story .
Thanks in advanced for any help