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

2018-10-11 Thread Sai Ram
No. Not really. We don't make registry changes on the fly. We do register the DLL with regvr32 once and for all. That's the reason we find it strange. This error is absolutely random and there are no changes in the set-up when this error is observed. All the 5000 test scripts are split into

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

2018-10-10 Thread Sai Ram
We use Nuance's Vocalizer Expressive for voice and sapi5.dll. Also, we modify the "Windows registry" to refer to this dll. This issue is seen randomly. The failures do not belong to any sub-set. The very next test script in the same set-up would fail. -Sairam K On Wed, Oct 10, 2018 at 12:51 PM

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

2018-10-10 Thread Sai Ram
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.

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

2018-10-10 Thread Tim Roberts
On Oct 10, 2018, at 1:25 PM, Sai Ram wrote: > > We use Nuance's Vocalizer Expressive for voice and sapi5.dll. Also, we modify > the "Windows registry" to refer to this dll. What does that mean? Ordinarily, you would just register the DLL with regsvr32 once and for all. Are you making

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

2018-10-10 Thread Tim Roberts
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

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

2018-10-10 Thread Tim Roberts
On Oct 9, 2018, at 8:03 AM, Sai Ram 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