How to use espeak with python(如何在 python 中使用 espeak)
本文介绍了如何在 python 中使用 espeak的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在 python2.7.0-32 中使用 espeak(http://espeak.sourceforge.net)windows7中的位.
I want to use espeak(http://espeak.sourceforge.net) with python2.7.0-32 bit in windows7.
另外,我还想保存espeak生成的音频文件.
Additionally, I also want to save the audio files generated by espeak.
推荐答案
我尝试安装这个包在 Windows 8 中,但在最初的几次尝试中无法真正获得它.
I tried to install this package in Windows 8 but couldn't really get it in the first few attempts.
但这就是我让 espeak 使用 python 所做的工作
But this is what i did to get espeak to work with python
- 从此处 下载并安装适用于 Windows 的 espeak
- 将
eSpeak/command-line
文件夹添加到PATH
以便命令espeak
可用 - 使用python模块
subprocess
调用espeak
命令,类似于下面例子中的方法
- Download and Install espeak for Windows from here
- Add the
eSpeak/command-line
folder toPATH
so that the commandespeak
is available - Call
espeak
commands using python modulesubprocess
similar to how it is done in the example below
http://machakux.appspot.com/blog/44003/making_speech_with_python
这篇关于如何在 python 中使用 espeak的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:如何在 python 中使用 espeak


基础教程推荐
猜你喜欢
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 求两个直方图的卷积 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 包装空间模型 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01