[python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")

Tim Roberts timr at probo.com
Wed Oct 10 12:51:25 EDT 2018


Sai Ram wrote:
>
>    I really did not know that this value would make difference. 
> Apologies for the vague question. The actual exception is "-2147352567".

That's 0x80020009, or DISP_E_EXCEPTION.  That's really telling you to 
refer to the other code for the details.


> Also, we have around 5000 test scripts. Out of these, around 300 test 
> scripts fails with this exception. So, I do not doubt any system 
> issues here.

Did you actually install the SAPI SDK?  Do all 5,000 of the scripts use 
SpVoice?  Do the 300 that fail use some particular subset?  Are they all 
either 32-bit or 64-bit apps?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3980 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-win32/attachments/20181010/c57793cf/attachment.bin>


More information about the python-win32 mailing list