nateshmbhat / pyttsx3

Offline Text To Speech synthesis for python
Mozilla Public License 2.0
1.99k stars 321 forks source link

``pyttsx3.drivers.nsss`` should use ``from objc import super`` #290

Open ronaldoussoren opened 10 months ago

ronaldoussoren commented 10 months ago

A user on the python forum mentioned an error message related to super when using pyttx3: https://discuss.python.org/t/attributeerror-super-object-has-no-attribute-init/33303

Looking at the code for the NSSpeech driver this is because the code uses the regular super instead of the PyObjC one. That often works, but can cause problems, see https://pyobjc.readthedocs.io/en/latest/core/super.html for more details.

To fix this add from objc import super to the imports in pyttx3.drivers.nsss.

miscCoder commented 10 months ago

also found here https://stackoverflow.com/questions/76434535/attributeerror-super-object-has-no-attribute-init

Akul2010 commented 10 months ago

I am adding fixes here.

This project is dead now.