Created
February 3, 2013 13:09
-
-
Save brokendish/4701715 to your computer and use it in GitHub Desktop.
「open-jtalk」日本語音声合成実行用シェル
「-ow」で指定したWAVファイル(~/open-talk.wav)で保存される。
その他に、数値の部分を適当にいじると話速、声質、ピッチが変えられる。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TMP=~/open-talk.wav | |
touch $TMP | |
cd /usr/share/hts-voice/nitech-jp-atr503-m001 | |
#cd /usr/share/hts-voice/mei_happy | |
echo "$1" | open_jtalk \ | |
-td tree-dur.inf \ | |
-tf tree-lf0.inf \ | |
-tm tree-mgc.inf \ | |
-md dur.pdf \ | |
-mf lf0.pdf \ | |
-mm mgc.pdf \ | |
-dm mgc.win1 \ | |
-dm mgc.win2 \ | |
-dm mgc.win3 \ | |
-df lf0.win1 \ | |
-df lf0.win2 \ | |
-df lf0.win3 \ | |
-dl lpf.win1 \ | |
-ef tree-gv-lf0.inf \ | |
-em tree-gv-mgc.inf \ | |
-cf gv-lf0.pdf \ | |
-cm gv-mgc.pdf \ | |
-k gv-switch.inf \ | |
-s 16000 \ | |
-a 0.05 \ | |
-u 0.0 \ | |
-jm 1.0 \ | |
-jf 1.0 \ | |
-jl 1.0 \ | |
-x /var/lib/mecab/dic/open-jtalk/naist-jdic \ | |
-ow $TMP && \ | |
aplay --quiet $TMP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment