Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pyTTS says, '"SAPI" not supported'

Reply
Thread Tools

pyTTS says, '"SAPI" not supported'

 
 
weheh
Guest
Posts: n/a
 
      06-22-2008
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?


 
Reply With Quote
 
 
 
 
Tim Golden
Guest
Posts: n/a
 
      06-23-2008
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
interactive programe-pyTTS &Tk Rob Williscroft Python 1 09-24-2006 10:11 PM
interactive program,pyTTS & Tk masternige Python 0 09-24-2006 12:40 PM
Text to MP3 using pyTTS - Non-programmer question seyeRMReyes@gmail.com Python 7 08-23-2006 04:54 PM
interactive programme, using pyTTS carmel stanley Python 0 06-15-2006 12:26 PM
Text To Speech with pyTTS Mike P. Python 6 03-04-2005 10:00 AM



Advertisments