Ⅰ. 插件描述
The speech synthesizer for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'koturn/vim-cloud-speech-synthesizer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'koturn/vim-cloud-speech-synthesizer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'koturn/vim-cloud-speech-synthesizer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/koturn/vim-cloud-speech-synthesizer
Ⅳ. 文档说明
vim-cloud-speech-synthesizer
Summary:
This is a Vim plugin of speech synthesizer used Clound Speech Synthesis Service
of NICT.
In consideration of the execution speed, this plug-in is not practical for
real-time processing, but is useful for generating speech synthesis wav-file.
Usage:
Execute following commands and you can hear the result of speech synthesis.
Specifications of Vim, it is necessary to escape-character(\) between words
of the sentence.
:CloudSpeechSynthesize ja こんにちは:CloudSpeechSynthesize en Hello:CloudSpeechSynthesize en Good\ morning!In this example, Vim makes a temporary wav-file and play it by sound.vim.
When you exit Vim, delete the temporary wav-files.
If you want to save the result of speech synthesis as a wav-file, specify
a wav-file name at the last of argument of the command.
:CloudSpeechSynthesize ja こんにちは result.wav:CloudSpeechSynthesize en Hello result.wav:CloudSpeechSynthesize en Good\ morning! result.wavRequirement:
base64 command
Installation:
For NeoBundle User
NeoBundle enables
resolving dependencies and lazy-loading.
Write following code in your .vimrc and do command :NeoBundleInstall.
NeoBundleLazy 'koturn/vim-cloud-speech-synthesizer', {
\ 'depends' : ['mattn/webapi-vim', 'Shougo/vimproc.vim', 'osyo-manga/vim-sound']
\ 'autoload' : {'commands' : 'CloudSpeechSynthesize'}
\}For Vundle User
Write following code in your .vimrc and do command :BundleInstall.
Bundle 'mattn/webapi-vim'
Bundle 'Shougo/vimproc.vim'
Bundle 'osyo-manga/vim-sound'
Bundle 'koturn/vim-cloud-speech-synthesizer'If you use other plugin manager or don't use it, I'm sorry, but please install
this plugin on your own.