Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyttsx3 generates hundreds of logging messages, even when debug is False #195

Open
AndyW118 opened this issue Apr 26, 2021 · 3 comments
Open
Assignees

Comments

@AndyW118
Copy link

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.

@oweppe
Copy link

oweppe commented May 13, 2021

Changing the level specifically for the "comtypes" logger seems to solve the issue:
logging.getLogger("comtypes").setLevel(logging.WARNING)

@AndyW118
Copy link
Author

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.

@willwade
Copy link
Collaborator

Yeah. I think I'll change this too or add a debug flag or something.

@willwade willwade self-assigned this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants