Traceback (most recent call last):
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/init.py", line 20, in init
eng = _activeEngines[driverName]
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/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 "/Users/xing/make-tools/Modelscope_Faster_Whisper_Multi_Subtitle/app.py", line 12, in
from subtitle_to_audio import generate_audio
File "/Users/xing/make-tools/Modelscope_Faster_Whisper_Multi_Subtitle/subtitle_to_audio.py", line 9, in
engine = pyttsx3.init()
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/init.py", line 22, in init
eng = Engine(driverName, debug)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/engine.py", line 30, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/driver.py", line 50, in init
self._module = importlib.import_module(name)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/drivers/nsss.py", line 12, in
class NSSpeechDriver(NSObject):
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/drivers/nsss.py", line 13, in NSSpeechDriver
@objc.python_method
NameError: name 'objc' is not defined
Traceback (most recent call last):
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/init.py", line 20, in init
eng = _activeEngines[driverName]
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/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 "/Users/xing/make-tools/Modelscope_Faster_Whisper_Multi_Subtitle/app.py", line 12, in
from subtitle_to_audio import generate_audio
File "/Users/xing/make-tools/Modelscope_Faster_Whisper_Multi_Subtitle/subtitle_to_audio.py", line 9, in
engine = pyttsx3.init()
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/init.py", line 22, in init
eng = Engine(driverName, debug)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/engine.py", line 30, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/driver.py", line 50, in init
self._module = importlib.import_module(name)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/drivers/nsss.py", line 12, in
class NSSpeechDriver(NSObject):
File "/opt/homebrew/anaconda3/envs/py309-ms/lib/python3.9/site-packages/pyttsx3/drivers/nsss.py", line 13, in NSSpeechDriver
@objc.python_method
NameError: name 'objc' is not defined