如何在python中使用espeak [英] How to use espeak with python

查看:27
本文介绍了如何在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

  1. 此处
  2. 下载并安装 Windows 版 espeak
  3. eSpeak/command-line 文件夹添加到 PATH 以便命令 espeak 可用
  4. 使用 python 模块 subprocess 调用 espeak 命令,类似于下面的例子
  1. Download and Install espeak for Windows from here
  2. Add the eSpeak/command-line folder to PATH so that the command espeak is available
  3. Call espeak commands using python module subprocess similar to how it is done in the example below

http://machakux.appspot.com/blog/44003/making_speech_with_python

这篇关于如何在python中使用espeak的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆