By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,079 Members | 1,337 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,079 IT Pros & Developers. It's quick & easy.

pyTTS says, '"SAPI" not supported'

P: n/a
I'm running Python 2.3 and calling pyTTS. I've had it working forever.

Today, I ran out of disk space. After deleting some of my personal files,
for no apparent reason, pyTTS no longer runs.

For the statement

tts = pyTTS.Create()

I get the error message:

ValueError: "SAPI" not supported

Can anybody help me? What's going on?
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
weheh wrote:
I'm running Python 2.3 and calling pyTTS. I've had it working forever.

Today, I ran out of disk space. After deleting some of my personal files,
for no apparent reason, pyTTS no longer runs.

For the statement

tts = pyTTS.Create()

I get the error message:

ValueError: "SAPI" not supported

Can anybody help me? What's going on?
(Hint: you'd have helped if you'd provided the whole
traceback).

Well, going by pyTTS v3.0 for Python 2.5, that error
comes from the __init__.py of the pyTTS package when
either you've specified a speech package other than
"SAPI" (the default) or the sapi module couldn't be imported.
My conclusion would be that you've accidentally removed some
part of the sapi package.

What happens if you open the interpreter (possibly with -v for
more info) from within the pyTTS folder and and do "import sapi"?

C:\Python25\Lib\site-packages\pyTTS>python -v -c "import sapi"

TJG

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.