2014-03-11, 02:45
(2014-03-11, 01:45)ruuk Wrote: I haven't investigated it yet but you can use the windows internal tts directly from python. I intend to try it out soon.Did some testing. This works in python in windows, but you have to install pywin32. Unfortunately this does not install to the xbmc python directory, and the installer for the XBMC version of python fails because it can't find XBMC's python version in the registry. If the contents of the install could be put into the xbmc python site-packages directory, I'm sure this could be made to work, but in the end, this is not a user friendly solution.
Code:import win32com.client
voice = win32com.client.Dispatch("SAPI.SpVoice")
voice.Speak(phrase)