Created
February 4, 2013 18:10
-
-
Save supermomonga/4708420 to your computer and use it in GitHub Desktop.
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 | |
# | |
# --- --- | |
OUT=/Users/momonga/tmp/jsay.tmp.wav | |
JTALK=/Users/momonga/bin/OpenJTalk | |
VO=/Users/momonga/bin/OpenJTalk/voice/mei_normal | |
# --- --- | |
cd $VO | |
rm -f $OUT | |
echo "$1" | nkf -e | $JTALK/bin/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 48000 \ | |
-z 12000 \ | |
-p 220 \ | |
-a 0.55 \ | |
-u 0.5 \ | |
-jm 0.7 \ | |
-jf 1.2 \ | |
-l \ | |
-x $JTALK/dic \ | |
-ow $OUT | |
# -s int sampling frequency 48000 [ 1--48000] | |
# -z int audio buffer size 12000 [ 0--48000] | |
# -p int frame period (point) 話速 210 [ 1--] | |
# -a float all-pass constant 声質 0.55 [ 0.0--1.0] | |
# -b float postfiltering coefficient 0.0 [-0.8--0.8] | |
# -g int gamma = -1 / i (if i=0 then gamma=0) 0 [ 0-- ] | |
# -u float voiced/unvoiced threshold 0.5 [ 0.0--1.0] | |
# -jm float weight of GV for spectrum 音量 0.7 [ 0.0--2.0] | |
# -jf float weight of GV for Log F0 抑揚 0.40 [ 0.0--2.0] | |
# -jl float weight of GV for low-pass filter 1.0 [ 0.0--2.0] | |
# -l regard input as log gain and output linear one (LSP) | |
afplay $OUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment