报错:
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyttsx3/drivers/nsss.py”, line 15, in initWithProxy
self = super(NSSpeechDriver, self).init()
AttributeError: ‘super’ object has no attribute ‘init’
解决方案:
pyttsx3 – 改为 pyttsx4
下载 pyttsx4 方式pip + 国内镜像:
pip install -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host pypi.douban.com pyttsx4