Need help! win32 com_error 'Exception occurred'

Tim Roberts timr at probo.com
Sun Jun 3 00:43:18 EDT 2007


"Richard Gordon" <weheh at verizon.net> wrote:
>
>I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 
>using MS SAPI 5.1 and Hammond's win32 module. The test program is
>  import pyTTS
>  tts = pyTTS.Create()
>  tts.Speak('Hello world.')
>...
>  com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 
>0, -2147201015), None)
>  >>>
>
>The system does not have a sound card --- could that be an issue?

Of course.  -2147201015 is 0x80045009, which is SPERR_NO_DRIVER.

Seriously, what on earth did you expect this to do?  Its whole purpose is
send sounds to the sound driver.  If there is no sound driver, what was it
supposed to do with the audio data?
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list