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

报错 #18

Open
xingforce opened this issue Nov 25, 2024 · 1 comment
Open

报错 #18

xingforce opened this issue Nov 25, 2024 · 1 comment

Comments

@xingforce
Copy link

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

@v3ucn
Copy link
Owner

v3ucn commented Nov 25, 2024

pip3 install -U pyttsx3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants