471,348 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

pyTTS com_error

I am trying to get the pyTTS module working. I have Python 2.4, the
Microsodt SAPI and pyTTS-3.0.win32-py2.4.exe installed.

When I run this script:

import pyTTS
tts = pyTTS.Create()

#set the speech rate
tts.Rate = 4

#set the speech volume percentage (0-100%)
tts.Volume = 40

#get a list of all the available voice actors
print tts.GetVoiceNames()

#explicitly set a voice
tts.SetVoiceByName('MSMary')

#speak the text
tts.Speak('This is the sound of my voice.')

I get this result
>>>
[u'MSMary', u'MSMike', u'MS-Anna-1033-20-DSK']

Traceback (most recent call last):
File "C:/Python24/spelling/testspeech", line 17, in -toplevel-
tts.Speak('This is the sound of my voice.')
File "C:\Python24\Lib\site-packages\pyTTS\sapi.py", line 213, in
Speak
self.speech.Speak(text, flagsum)
File "C:\Python24\lib\site-packages\win32com\gen_py
\C866CA3A-32F7-11D2-9602-00C04F8EE628x0x5x3.py", line 2831, in Speak
, Flags)
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None,
0, -2147221164), None)
>>>
I am a brand-newby, and any help will be greatly appreciated.

Thanks
Dec 11 '07 #1
0 927

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by g.franzkowiak | last post: by
reply views Thread by carmel stanley | last post: by
1 post views Thread by Nigel | last post: by
1 post views Thread by Richard Gordon | last post: by
2 posts views Thread by Richard Gordon | last post: by
2 posts views Thread by simon kagwe | last post: by
1 post views Thread by weheh | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.