-
Notifications
You must be signed in to change notification settings - Fork 346
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
Not working pyttsx3 on macos . #297
Comments
same for me. |
same for me as well |
Installing this package solved the challenge for me. |
thanks @onyekaokonji this worked for me |
I was experiencing the same issue, and that seemed to resolve that issue. Now I received a new error (below). Do you have an idea on how to address? Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
This worked for me as well. Thanks a lot |
This worked for me as well, however the single line |
这个有用 |
Still not working for me. During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Unable to load driver "None" |
try to uninstall you pyobjc then install 9.X version, see if it works |
第一步:pip install pyttsx4 |
Personally pyttsx4 deviates quite a bit - the coqui stuff is ok. but its a bit of a overhead - this is cleaner IMHO https://github.com/thevickypedia/py3-tts (although they could do with stating its a fork) |
cool ! it works success on my mac machine! |
I faced the same issue and it drove me crazy until I got here. Thanks, guys. |
updated docs to address this and merged many bug fix PRs and published the library. if the issue persists, pls raise another issue. |
Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Unable to load driver "None" |
Hold on @AbhashKumar55 this doesn’t look to be the same issue as the macOS one. I see you are on windows. @AbhashKumar55 can you confirm what version of this library you are using. I feel this issue you are raising is dealt with on later versions. |
Yeah i"m on my windows and the version of this library is "py3-tts 3.5" but at first i installed version "pyttsx3 2.98" and then "py3-tts 3.5" Now i"m confused and it"s not working so should i go for "pyttsx4 3.0.15" ? |
i am using pyttsx3 on macos and python version that i am using is 3.9.0 64bit . i am getting this error on both imac and mac book air .
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyttsx3/init.py", line 20, in init
eng = _activeEngines[driverName]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/weakref.py", line 134, in getitem
o = self.datakey
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/Shared/python_code/youtube_summarizer/test.py", line 15, in
text_to_speech(text)
File "/Users/Shared/python_code/youtube_summarizer/test.py", line 5, in text_to_speech
speaker = pyttsx3.init()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyttsx3/init.py", line 22, in init
eng = Engine(driverName, debug)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyttsx3/engine.py", line 30, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyttsx3/driver.py", line 50, in init
self._module = importlib.import_module(name)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyttsx3/drivers/nsss.py", line 12, in
class NSSpeechDriver(NSObject):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyttsx3/drivers/nsss.py", line 13, in NSSpeechDriver
@objc.python_method
NameError: name "objc" is not defined
The text was updated successfully, but these errors were encountered: