Best text to speech python library without blocking program
I basically want a logging system with text to speech in python but i am afraid it will pause the main program. Following program is working for me but it will pause thread where ever i log text to speech. Is there any way in python where i can log but it should not block main program.
pyttsx3 error (_ctypes.COMError: (-2147200966, None, (None, None, None, 0, None))
Traceback (most recent call last): File “c:UsersCompu TechOneDriveDesktopCortextempCodeRunnerFile.python”, line 3, in <module> voices = engine.getProperty(‘voices’) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersCompu TechAppDataLocalProgramsPythonPython312Libsite-packagespyttsx3engine.py”, line 146, in getProperty return self.proxy.getProperty(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersCompu TechAppDataLocalProgramsPythonPython312Libsite-packagespyttsx3driver.py”, line 173, in getProperty return self._driver.getProperty(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “C:UsersCompu TechAppDataLocalProgramsPythonPython312Libsite-packagespyttsx3driverssapi5.py”, line 88, in getProperty return [self._toVoice(attr) for attr in self._tts.GetVoices()] ^^^^^^^^^^^^^^^^^^^ File “C:UsersCompu TechAppDataLocalProgramsPythonPython312Libsite-packagespyttsx3driverssapi5.py”, line 77, […]