Mike P. wrote:
Hi,
I was wondering if anyone has had any luck with the python text to speech
(pyTTS) module available on Sourceforge:
http://sourceforge.net/projects/uncassist

I have followed the tutorial for pyTTS at:
http://www.cs.unc.edu/~parente/tech/tr02.shtml

Using the first simple speech example:

import pyTTS

tts = pyTTS.Create()
tts.Speak("Hello World!")

I get the following error on the call to pyTTS.Create()

C:\Program Files\Python23\Lib\site-packages\pyTTS>python
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.

import pyTTS
tts = pyTTS.Create()

Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\Program Files\Python23\Lib\site-packages\pyTTS\__init__.py", line 28, in Create raise ValueError('"%s" not supported' % api) ValueError: "SAPI" not supported ...

The TTSFast.py file is missing in the 2.3 distribution. I made a copy from the 2.4 dist and everything worked fine for me.


Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to