pyTTS says, '"SAPI" not supported'

Discussion in 'Python' started by weheh, Jun 22, 2008.

  1. weheh

    weheh Guest

    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?
     
    weheh, Jun 22, 2008
    #1
    1. Advertisements

  2. weheh

    Tim Golden Guest

    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
     
    Tim Golden, Jun 23, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. celine langlois

    SAPI permission

    celine langlois, Feb 28, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    718
    celine langlois
    Feb 28, 2006
  2. Mike P.

    Text To Speech with pyTTS

    Mike P., Feb 27, 2005, in forum: Python
    Replies:
    6
    Views:
    6,578
    Hans Georg Krauthaeuser
    Mar 4, 2005
  3. carmel stanley

    interactive programme, using pyTTS

    carmel stanley, Jun 15, 2006, in forum: Python
    Replies:
    0
    Views:
    404
    carmel stanley
    Jun 15, 2006
  4. Replies:
    7
    Views:
    1,230
  5. masternige

    interactive program,pyTTS & Tk

    masternige, Sep 24, 2006, in forum: Python
    Replies:
    0
    Views:
    428
    masternige
    Sep 24, 2006
  6. Rob Williscroft

    interactive programe-pyTTS &Tk

    Rob Williscroft, Sep 24, 2006, in forum: Python
    Replies:
    1
    Views:
    416
    Nigel
    Sep 24, 2006
  7. simon kagwe

    Using pyTTS with other languages.

    simon kagwe, Jun 4, 2007, in forum: Python
    Replies:
    2
    Views:
    401
    simon kagwe
    Jun 4, 2007
  8. Dick

    pyTTS com_error

    Dick, Dec 11, 2007, in forum: Python
    Replies:
    0
    Views:
    461
Loading...