Pytalker-用于包装谷歌TTS的文本到语音代码。

pytalker的Python项目详细描述


============================================================
pytalker  Copyright (C) 2014  F. Brezo and Y. Rubio, i3visio
============================================================

说明:

pytalker是一个python模块,用于包装 谷歌的TTS服务。它很容易实现google tts的包装器 服务。

许可证:GPLv3

这是免费软件,欢迎您在 某些条件。

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

有关此问题的详细信息,请运行: python pytalker-launcher.py--license

安装:

它需要安装gst库。你可以检查一下 如果没有错误,请键入:python -c "import gst"安装库 如图所示,您可以继续学习本教程。在其他情况下,尽量 手动安装此模块。在类似于debian的linux发行版中 如下:sudo apt-get install python-gst0.1

在Python2.7下安装开发包如下 安装git之后: git clone http://github.com/i3visio/pytalker cd pytalker sudo python setup.py build sudo python setup.py installwget http://github.com/i3visio/pytalker/archive/master.zip unzip pytalker-master.zip cd pytalker-master sudo python setup.py build sudo python setup.py install 需要超级用户权限才能完成安装。 之后,模块将从任何python代码中导入。你可以 如果没有错误,请键入:python -c "import pytalker"来检查 显示时,安装将正确执行。

用法:

要运行程序,请导航到pytalker master/pytalker并运行: python pytalker-launcher.py-h用法说明如下: usage: pytalker-launcher.py[-h]-l <language> [<language> ...][-o <path_to_output_folder>] -t <text>                             [<text> ...](-d | -s)[--version]

功能描述如下:```可选参数: -h,帮助显示此帮助消息和退出-D,下载下载 播放声音。-例如播放输入文本。

处理参数:配置处理参数。

-L[…]–语言[…]要使用的语言列表。例:en, es、fr等。-o,–输出文件夹到输出文件夹的路径,其中 结果将被存储。-t[…],–要播放的文本[…]text 逗号之间。

关于参数:显示有关此程序的其他信息。

版本显示程序的版本并存在。

请注意,GST库应该安装在您的系统上。在 类似debian的os try:sudo apt get install python-gst0.10```

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java TCP服务器未关闭电脑   在XML中定义“数字”时,java“imeOptions”不起作用   没有持久性的java Multiple entityManagerFactory。xml   java Netbeans使用Tomcat连接进行调试被拒绝   java二进制搜索已排序的E列表(开始时间,结束时间),以查找给定时间范围(t1,t2)匹配的所有E   python Jython等价于Java代码   java如何在Ninjaframework中的ConstraintValidator中使用依赖项注入?   Java扫描器类在C中做什么#   java同时支持公共接口API和内部具体API?   java如何使<T extends E>泛型类型参数包含在内?   java添加按钮在array或db中单击或点击以在安卓中重复相同的操作   xml解析Java:如何防止EntityResolver#resolveEntity(String publicId,String systemId)中的“systemId”被绝对化到当前工作目录   jakarta ee在Java中实现OAuth协议   JavaSpringMVC抛出了404,带有普通请求映射   java如何实现hibernate二级缓存上的查询与连接?   spring发生JNI错误,线程“main”java中出现异常。lang.NoClassDefFoundError:org/springframework/context/ApplicationContext   java为什么在此GraphQL设置中不调用DataFetcher?   java忽略cucumber中的特定标记,但运行所有其他标记