ikazuchi语音处理器
项目描述
ikazuchi.plugins.speech 是 ikazuchi 的插件,用于提供文本到语音功能。
ikazuchi 是一个CUI工具,旨在与其他工具配合使用。
有关更多详细信息,请参阅项目的文档。
功能
为给定的文本或翻译后的文本提供文本到语音功能
设置
使用easy_install
使用buildout创建环境
$ easy_install ikazuchi.plugins.speech
使用
使用buildout创建环境
$ hg clone https://bitbucket.org/t2y/ikazuchi.plugins.speech $ cd ikazuchi.plugins.speech $ python bootstrap.py -d $ bin/buildout
用法
使用ikazuchi命令说给定的文本
$ ikazuchi speech -s "hello world" use command: /usr/bin/afplay sentence: hello world translate_tts(Google):
使用ikazuchi命令说翻译后的文本
$ ikazuchi speech -s "hello world" -p use command: /usr/bin/afplay sentence: hello world translate(Google): [translated text] translate_tts(Google):
显示可用的插件
$ ikazuchi -h
usage: ikazuchi [-h] {rstfile,speech,normal} ...
positional arguments:
{rstfile,speech,normal}
available plugins. 'normal' means ikazuchi's standard
feature so it can be abbreviated
optional arguments:
-h, --help show this help message and exit
显示语音插件帮助
$ ikazuchi speech -h
usage: ikazuchi speech [-h] [-a API] [-e ENCODING] [-f LANG] [-q] [-t LANG]
[-c COMMAND] [-p] [-r READING TARGET FILE]
[-s SENTENCE [SENTENCE ...]] [--version]
optional arguments:
-h, --help show this help message and exit
-a API, --api API APIs are ['google', 'microsoft']
-e ENCODING, --encoding ENCODING
input/output encoding
-f LANG, --from LANG original language
-q, --quiet not to show original sentence to stdout
-t LANG, --to LANG target language to translate
-c COMMAND, --command COMMAND
use any command to speak(play audio file)
-p, --post speak post-translated target sentences
-r READING TARGET FILE, --read READING TARGET FILE
read aloud target file
-s SENTENCE [SENTENCE ...], --sentences SENTENCE [SENTENCE ...]
target sentences
--version show program's version number and exit
要求
Python 2.6或更高版本
ikazuchi 0.5.2或更高版本
pyglet 1.1.4或更高版本
setuptools或distriubte
许可证
Apache许可证2.0
历史
0.1.2 (2011-06-15)
修复与“-s”选项相关的编码关键错误
0.1.1 (2011-06-11)
修复与默认API名称相关的小错误
0.1.0 (2011-06-06)
第一个版本
待办事项
需要在各种平台上进行测试
项目细节
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源代码分发
ikazuchi.plugins.speech-0.1.2.tar.bz2 (26.3 kB 查看哈希值)