views:

43

answers:

2

Hi, Is there pyTTS or some kind of speech module for python 3.0? I can't seem to find it anywhere and I'd really like to try it out.

+1  A: 

Festival is the only TTS engine for Linux I know of, and it has pyfestival - http://code.google.com/p/pyfestival/ .

In the past I wrote my own bindings because the interface was so simple.

Forrest
+1  A: 

If you are on window, why don't you directly access SAPI using python com interface, e.g.

import win32com.client
speaker = win32com.client.Dispatch("SAPI.SpVoice")
speaker.Speak("Hello, it works!")
Anurag Uniyal
I have tried this already but it doesn't work for me. Maybe it's because I'm running 64bit Win 7? (I have installed win32com but I can't import it)
bah
hmm not sure abt 64bit Win 7, may be that is another question for SO
Anurag Uniyal
So looks like that I didn't have Microsoft speech sdk installed, but even now when I do have that installed I still can't import it. I read that I have to run makepy (tools | COM makepy utility | ... ) or something to make this work, but I don't seem to find it. Could you help me with this?
bah
what error you are getting?
Anurag Uniyal
Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> import win32com.client File "C:\Python31\lib\site-packages\win32com\__init__.py", line 5, in <module> import win32api, sys, osImportError: DLL load failed: The specified module could not be found.
bah
This is when I try to import win32com.client (import win32com.client)
bah
May be you said ask a separate question regarding problems with win32com
Anurag Uniyal