Open AndyW118 opened 3 years ago
Changing the level specifically for the "comtypes" logger seems to solve the issue: logging.getLogger("comtypes").setLevel(logging.WARNING)
Thanks for that. But I'm not clear whether that's something I should do, or something the pyttsx3 developers will be doing. Could you claify that please.
Yeah. I think I'll change this too or add a debug flag or something.
The package generates 61 DEBUG logging entries when the engine is init'd and 223 entries each time say() is called. The latter are all of the form
unimplemented method _ISpeechVoiceEvents_Word called <comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.Release() -> 1
<comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.AddRef() -> 2
unimplemented method _ISpeechVoiceEvents_Phoneme called
<comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.Release() -> 1
<comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.AddRef() -> 2
unimplemented method _ISpeechVoiceEvents_Viseme called
<comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.Release() -> 1
<comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.AddRef() -> 2
unimplemented method _ISpeechVoiceEvents_Phoneme called
<comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.Release() -> 1
<comtypes.client._events.CreateEventReceiver..Sink object at 0x000001FD82E8FB50>.AddRef() -> 2
The speech reproduction is nevertheless perfect! I can't use the package if it generates all these messages.