Python rapper module of open_jtalk
Project description
jtalkpy
Python rapper module of open_jtalk
Install
pip install jtalkpy
In order to use this module, open_jtalk
command must be able to use.
See OpenJtalk.
For Ubuntu system
sudo apt-get install open-jtalk open-jtalk-mecab-naist-jdic hts-voice-nitech-jp-atr503-m001
dict_dir
should be /var/lib/mecab/dic/open-jtalk/naist-jdic
voice_file
should be /usr/share/hts-voice/nitech-jp-atr503-m001/nitech_jp_atr503_m001.htsvoice
For other systems
Pleanse install from souce.
VOICE FILES
There are many open source HTS voice model files.
This page (Japanse) introduces many models.
Usage
from jtalkpy import Jtalk
dict_dir = "/var/lib/mecab/dic/open-jtalk/naist-jdic"
voice_file = "/usr/share/hts-voice/nitech-jp-atr503-m001/nitech_jp_atr503_m001.htsvoice"
#
jtalk = Jtalk(dict_dir, voice_file)
jtalk.from_string("こんにちは、世界", output_file="/home/ubuntu/jtalk_wavs/hello.wav")
Open Jtalk options can be set at initialization of Jtalk
object.
And when from_string
is called, you can also overwrite these options temporary.
Contribution
Feel free to create pull request.
- Fork it ( http://github.com/yhay81/jtalkpy/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Licence
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jtalkpy-1.0.0.tar.gz
(4.8 kB
view hashes)