{"id":163,"date":"2012-03-29T17:05:12","date_gmt":"2012-03-29T21:05:12","guid":{"rendered":"http:\/\/alpharesearch.de\/?p=163"},"modified":"2012-03-29T20:52:01","modified_gmt":"2012-03-30T00:52:01","slug":"japanese-speech-output-with-open_jtalk","status":"publish","type":"post","link":"https:\/\/alpharesearch.de\/?p=163","title":{"rendered":"Japanese speech output with open_jtalk"},"content":{"rendered":"<p>This is not as easy as espeak with English&#8230; and it looks like Japanes is not as easy as English. However here is what I had done:<\/p>\n<p>download<\/p>\n<ul>\n<li><a href=\"http:\/\/packages.debian.org\/wheezy\/open-jtalk\">http:\/\/packages.debian.org\/wheezy\/open-jtalk<\/a><\/li>\n<li>libhtsengine1_1.06-1_amd64.deb<\/li>\n<li>open-jtalk-mecab-naist-jdic_1.05-1_all.deb<\/li>\n<li>open-jtalk_1.05-1_amd64.deb<\/li>\n<li>hts-voice-nitech-jp-atr503-m001_1.04-1_all.deb<\/li>\n<li>hts-voice-mei_1.1+dfsg-1_all.deb<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>found the right commands<br \/>\n<span style=\"font-size: x-small;\"><span style=\"line-height: 19px;\">I found a script to use open_jtalk on this page\u00a0<a href=\"http:\/\/d.hatena.ne.jp\/hecomi\/20120221\/1329838707\">http:\/\/d.hatena.ne.jp\/hecomi\/20120221\/1329838707<\/a><\/span><\/span><\/p>\n<p><span style=\"font-size: x-small;\"><span style=\"line-height: 19px;\"><a href=\"http:\/\/d.hatena.ne.jp\/hecomi\/20120221\/1329838707\"><\/a><br \/>\n<\/span><\/span> <\/p>\n<p>Here is my version modified version of the script:<br \/>\n~\/bin\/jspeak.sh<br \/>\n<code><br \/>\n#\/bin\/sh<br \/>\ncase \"$1\" in<br \/>\n1)  echo \"mei_angry\"<br \/>\n    VOICE=\/usr\/share\/hts-voice\/mei_angry<br \/>\n    ;;<br \/>\n2)  echo  \"mei_bashful\"<br \/>\n    VOICE=\/usr\/share\/hts-voice\/mei_bashful<br \/>\n    ;;<br \/>\n3)  echo  \"mei_happy\"<br \/>\n\tVOICE=\/usr\/share\/hts-voice\/mei_happy<br \/>\n    ;;<br \/>\n4)\techo  \"mei_normal\"<br \/>\n\tVOICE=\/usr\/share\/hts-voice\/mei_normal<br \/>\n\t;;<br \/>\n5)\techo  \"mei_sad\"<br \/>\n\tVOICE=\/usr\/share\/hts-voice\/mei_sad<br \/>\n\t;;<br \/>\n*)\techo \"nitech-jp-atr503-m001\"<br \/>\n\tVOICE=\/usr\/share\/hts-voice\/nitech-jp-atr503-m001<br \/>\n\t;;<br \/>\nesac<br \/>\nopen_jtalk $2 \\<br \/>\n-td $VOICE\/tree-dur.inf \\<br \/>\n-tf $VOICE\/tree-lf0.inf \\<br \/>\n-tm $VOICE\/tree-mgc.inf \\<br \/>\n-md $VOICE\/dur.pdf \\<br \/>\n-mf $VOICE\/lf0.pdf \\<br \/>\n-mm $VOICE\/mgc.pdf \\<br \/>\n-df $VOICE\/lf0.win1 \\<br \/>\n-df $VOICE\/lf0.win2 \\<br \/>\n-df $VOICE\/lf0.win3 \\<br \/>\n-dm $VOICE\/mgc.win1 \\<br \/>\n-dm $VOICE\/mgc.win2 \\<br \/>\n-dm $VOICE\/mgc.win3 \\<br \/>\n-ef $VOICE\/tree-gv-lf0.inf \\<br \/>\n-em $VOICE\/tree-gv-mgc.inf \\<br \/>\n-cf $VOICE\/gv-lf0.pdf \\<br \/>\n-cm $VOICE\/gv-mgc.pdf \\<br \/>\n-k $VOICE\/gv-switch.inf \\<br \/>\n-x \/var\/lib\/mecab\/dic\/open-jtalk\/naist-jdic\/ \\<br \/>\n-s 48000 \\<br \/>\n-p 240 \\<br \/>\n-a 0.58 \\<br \/>\n-u 0.5 \\<br \/>\n-jm 0.7 \\<br \/>\n-jf 0.5 \\<br \/>\n-l \\<br \/>\n-z 48000 \\<br \/>\n-ow ~\/jpout.wav \\<br \/>\n-ot ~\/jpout.log<br \/>\nplay ~\/jpout.wav --norm<br \/>\n<\/code><\/p>\n<p>female voice<br \/>\n$ ~\/bin\/jpspeak.sh 2 jp.txt<br \/>\nmale voice<br \/>\n$ ~\/bin\/jpspeak.sh 0 jp.txt<\/p>\n<p>I use Geany text editor in Gnome to modify text files (it is very important that the encoding is set the EUC-JP or you get this error: WARNING: text2mecab() in text2mecab.c: Wrong character.) file and I configured a command in Geany to call the script, the only thing I need to do it to type something in Japanese and press F8 for male or F9 for female and it talks.<\/p>\n<p>To install the Japanese keyboard in Ubuntu\/Mint you need to go to\u00a0Administration-&gt;Language Support and install Japanese and set input\u00a0method to IBus (on mint you also need to install ibus). Under System-&gt;Keyboard Input Methods you will need to configure the short cut and add Japanese to the list. There are\u00a0YouTube videos and lots of forum post that\u00a0explain\u00a0this in great detail.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is not as easy as espeak with English&#8230; and it looks like Japanes is not as easy as English. However here is what I had done: download http:\/\/packages.debian.org\/wheezy\/open-jtalk libhtsengine1_1.06-1_amd64.deb open-jtalk-mecab-naist-jdic_1.05-1_all.deb open-jtalk_1.05-1_amd64.deb hts-voice-nitech-jp-atr503-m001_1.04-1_all.deb hts-voice-mei_1.1+dfsg-1_all.deb &nbsp; found the right commands I found a script to use open_jtalk on this page\u00a0http:\/\/d.hatena.ne.jp\/hecomi\/20120221\/1329838707 Here is my version modified version &hellip; <a href=\"https:\/\/alpharesearch.de\/?p=163\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Japanese speech output with open_jtalk<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alpharesearch.de\/index.php?rest_route=\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alpharesearch.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alpharesearch.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alpharesearch.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alpharesearch.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":18,"href":"https:\/\/alpharesearch.de\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/alpharesearch.de\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/alpharesearch.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alpharesearch.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alpharesearch.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}