Traceback (most recent call last):
File "C:\Python\Python310\lib\site-packages\pyttsx3_init_.py", line 20, in init
eng = _activeEngines[driverName]
File "C:\Python\Python310\lib\weakref.py", line 137, in getitem
o = self.datakey
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Coding\Python\Jarvis_New\test.py", line 17, in
speak("Hello")
File "D:\Coding\Python\Jarvis_New\test.py", line 13, in speak
engine = pyttsx3.init()
File "C:\Python\Python310\lib\site-packages\pyttsx3_init_.py", line 22, in init
eng = Engine(driverName, debug)
File "C:\Python\Python310\lib\site-packages\pyttsx3\engine.py", line 30, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "C:\Python\Python310\lib\site-packages\pyttsx3\driver.py", line 52, in init
self._driver = self._module.buildDriver(weakref.proxy(self))
File "C:\Python\Python310\lib\site-packages\pyttsx3\drivers\sapi5.py", line 30, in buildDriver
return SAPI5Driver(proxy)
File "C:\Python\Python310\lib\site-packages\pyttsx3\drivers\sapi5.py", line 47, in init
self.setProperty('voice', self.getProperty('voice'))
File "C:\Python\Python310\lib\site-packages\pyttsx3\drivers\sapi5.py", line 90, in getProperty
return self._tts.Voice.Id
_ctypes.COMError: (-2147221164, 'Class not registered', (None, None, None, 0, None))