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 install 或 wget 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```