Python anaconda windows 10上的Espeak

Python anaconda windows 10上的Espeak,python,anaconda,espeak,Python,Anaconda,Espeak,我想运行一段使用espeak的代码。我已在我的anaconda环境中使用py-espeak ng安装了espeak。但当我运行代码时,它会显示以下错误: 'espeak' is not recognized as an internal or external command, operable program or batch file. 所以我寻找答案,发现解决这个问题的办法是: 尝试将完整路径添加到espeak安装 我不知道该怎么做。有人能给我解释一下这个过程吗?你有没有试过像平常一样下

我想运行一段使用espeak的代码。我已在我的anaconda环境中使用
py-espeak ng
安装了espeak。但当我运行代码时,它会显示以下错误:

'espeak' is not recognized as an internal or external command, operable program or batch file.
所以我寻找答案,发现解决这个问题的办法是:

尝试将完整路径添加到espeak安装


我不知道该怎么做。有人能给我解释一下这个过程吗?

你有没有试过像平常一样下载espeak,然后使用(通过
导入操作系统
os.system(“espeak‘hello world’”)
?我刚刚为espeak定义了一个函数:
def alarm(msg):全局报警状态全局报警状态2全局报警状态,而报警状态:打印('call')s='espeak'+msg+''os.system,如果报警状态2:print('call')saying=True s='espeak'+msg+''os.system saying=False