[python-win32] Exception '-2147221164' while using win32com.client.Dispatch("SAPI.SpVoice")
Sai Ram
sairamk1989 at gmail.com
Wed Oct 10 09:36:12 EDT 2018
Hello Tim,
I really did not know that this value would make difference. Apologies
for the vague question. The actual exception is "-2147352567". 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.
Thank you for your response. Appreciate it.
-Sairam K
On Wed, Oct 10, 2018 at 2:49 AM Tim Roberts <timr at probo.com> wrote:
> On Oct 9, 2018, at 8:03 AM, Sai Ram <sairamk1989 at gmail.com> wrote:
>
>
> We are using "win32com.client.Dispatch("SAPI.SpVoice")" for TTS to our
> target device from a Windows 7 desktop. We are seeing many of these
> exceptions: "Exception '-2147221164'".
> Is there a fix for this? Basically, wanted to know the reason for this
> exception and the fix for this.
>
>
> COM exceptions are listed in hex. -2147221164 is 0x80040154, which is
> E_CLASSNOTREG. Have you installed SAPI 5.1? It's not built-in.
> —
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20181010/f3b8d03c/attachment-0001.html>
More information about the python-win32
mailing list