gpt4 book ai didi

text-to-speech - pyttsx : No module named 'engine'

转载 作者:行者123 更新时间:2023-12-03 11:04:39 25 4
gpt4 key购买 nike

我正在尝试使用 this 安装 TTS 包.一切正常,直到我尝试执行以下命令:

import pyttsx

我得到了这个错误:
File "/usr/local/lib/python3.4/dist-packages/pyttsx/__init__.py", line 18, in module <br>
from engine import Engine<br>
ImportError: No module named 'engine'

任何帮助,将不胜感激。谢谢!

最佳答案

伙计们,有一个与 Python3 兼容的更新包:
pyttsx3
离线工作,产生的声音没有延迟。
安装:

pip install pyttsx3

访问 https://pyttsx3.readthedocs.io完整的使用文档。
谢谢!

关于text-to-speech - pyttsx : No module named 'engine' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29615235/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com