Skip to content Skip to sidebar Skip to footer

Using Win32client Sapi.spvoice With Multi-threading Leads To Pywintypes.com_error

I am trying to use a thread with wincl's built-in voice system. However I am running into this error: pywintypes.com_error: (-2147221008, 'CoInitialize has not been called.', None

Solution 1:

You need to call pythoncom.CoInitialize or pythoncom.CoInitializeEx in a non-main thread to be able to use COM in it.


Post a Comment for "Using Win32client Sapi.spvoice With Multi-threading Leads To Pywintypes.com_error"