by shula » Wed Jan 13, 2010 5:54 am
I am interested in text-to-speech (TTS) functionality.
I have implemented for myself a small program (in VB6 and in Python) to use SAPI4 and SAPI5 to say words in various languages from the command line but I don't know how to integrate it into GD's dialogs. I don't mind releasing it as GPL.
preferably, there will be a button like "Say it", which will send the word & language code to the speech module.
The easy thing to program is sending language ID & sentence to a UTF-8 command line, and then have the program path & parameters set in GD settings dialog.
the complicated thing is implementing it in GD, but then it's difficult to maintain portability, since Linux TTS modules are quite different (i.e. no SAPIx), and since voice files for each language can be found only for one of either SAPI4 -or- SAPI5, not both, and probably not for free.
in linux there are various command line programs to speech words, e.g. flite.