我试图在Python 3.5.2和pyttsx库中运行语音程序。 但我遇到了很多问题。 第一个是发动机。 当我运行命令import pyttsx ,编译器给出了如下错误:
ImportError: No module named 'engine'
然后我找到了这个答案 。 但它也没有用。 最后,我现在有另一个 - 类似 - 如下所示的错误:
D:\Users\orcuny\Desktop\AVA>python ava.py
Traceback (most recent call last):
File "D:\Users\orcuny\AppData\Local\Continuum\Anaconda3\lib\site-packages\pyttsx\__init__.py", line 37, in init
eng = _activeEngines[driverName]
File "D:\Users\orcuny\AppData\Local\Continuum\Anaconda3\lib\weakref.py", line 131, in __getitem__
o = self.data[key]()
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ava.py", line 3, in
engine = pyttsx.init()
File "D:\Users\orcuny\AppData\Local\Continuum\Anaconda3\lib\site-packages\pytts