So-net無料ブログ作成

EdisonでOpen JTalkを使ってみる [edison]

前回,EdsionでUSB Audioを使えるようにしたので,今回はOpen JTalkを使ってEdisonにしゃべらせてみる.Open JTalkはフリーの日本語音声合成エンジンだ.

ではさっそくインストール.

まず,hts_engine APIをインストール.適当なディレクトリ(以下ではopenjtalk)を用意してダウンロード,展開してインストールしてやる.
cd ~/
mkdir openjtalk
cd openjtalk/
wget http://downloads.sourceforge.net/hts-engine/hts_engine_API-1.09.tar.gz
tar xzvf hts_engine_API-1.09.tar.gz
cd hts_engine_API-1.09/
./configure
make
make install

次に,OpenJTalkのインストール
cd ~/openjtalk/
wget http://downloads.sourceforge.net/open-jtalk/open_jtalk-1.08.tar.gz
wget http://downloads.sourceforge.net/open-jtalk/open_jtalk_dic_utf_8-1.08.tar.gz
wget http://downloads.sourceforge.net/open-jtalk/hts_voice_nitech_jp_atr503_m001-1.05.tar.gz

tar xzvf open_jtalk-1.08.tar.gz
cd open_jtalk-1.08/
./configure \
     --with-hts-engine-header-path=/usr/local/include \
     --with-hts-engine-library-path=/usr/local/lib \
     --with-charset=utf-8
make
make install

cd ~/openjtalk/
tar xzvf open_jtalk_dic_utf_8-1.08.tar.gz
tar xzvf hts_voice_nitech_jp_atr503_m001-1.05.tar.gz

MMDAgentのサイトから音声データをダウンロード
wget http://sourceforge.net/projects/mmdagent/files/MMDAgent_Example/MMDAgent_Example-1.4/MMDAgent_Example-1.4.zip
unzip MMDAgent_Example-1.4.zip


Open JTalkの実行にはオプションが多いので,スクリプトを作成して実行する.
vi openjtalk.sh

#!/bin/sh

OPENJTALK_DIR=/home/root/openjtalk
VOICE=$OPENJTALK_DIR/MMDAgent_Example-1.4/Voice/mei/mei_normal.htsvoice
DIC=$OPENJTALK_DIR/open_jtalk_dic_utf_8-1.08
echo $1 | open_jtalk \
-m  $VOICE \
-x  $DIC \
-ow $2 \
-g 9

ちなみに,最後の-gはvolume(dB)を指定するオプションだ.
前回,EdisonにUSB Audioを接続したが,スピーカーが100均のパッシブスピーカーなので音がとても小さい.なので,Open JTalkの出力をあらかじめ上げておく.値を大きくすると出力の音量が大きくなる.あまり上げすぎると音が歪んでしまうので適当に調整してみてくださいな.

あとは作成したスクリプトに実行属性を設定して,
chmod 744 openjtalk.sh

しゃべらせてみる.とりあえず「テストです」としゃべってもらうには,
./openjtalk.sh "テストです" a.wav

これでa.wavファイルが作成される.

再生はうちの環境では
aplay -D plughw:1 a.wav

でOK.

お試しあれ.

タグ:openjtalk
nice!(1)  コメント(48)  トラックバック(0) 
共通テーマ:日記・雑感

nice! 1

コメント 48

CrbnuttefsGF

direct online lender - http://personalnerloan.org/ american payday loans <a href=http://personalnerloan.org/>instant personal loan</a> ’
by CrbnuttefsGF (2017-09-21 08:04) 

お名前(必須)

cialis women side effects
<a href="http://cialisofkl.com/">cheap cialis</a>
cialis directions
<a href=http://cialisofkl.com/>online cialis</a> ’
by お名前(必須) (2017-09-23 09:51) 

お名前(必須)

soft cialis tabs
<a href="http://cialisovnas.com/">cialis buy</a>
cialis uk sales
<a href=http://cialisovnas.com/>cialis</a>
by お名前(必須) (2017-09-23 19:17) 

FfvgUsepleIM

does cialis work
<a href="http://veucialis.com/">buy cialis</a>
brand cialis cheap order
<a href=http://veucialis.com/>buy cialis</a> ’
by FfvgUsepleIM (2017-09-24 18:15) 

VqvqKeyncEA

cialis soft tabs 20mg
<a href="http://gawcialis.com/">generic cialis</a>
what dose of cialis should i take
<a href=http://gawcialis.com/>generic cialis</a> ’
by VqvqKeyncEA (2017-09-24 18:15) 

お名前(必須)

cialis price
<a href="http://cialiseimah.com/">cialis online</a>
cialis sale
<a href=http://cialiseimah.com/>cialis</a>
by お名前(必須) (2017-09-25 21:14) 

お名前(必須)

cheap cialis tablets
<a href="http://cialisoakdm.com/">cialis online</a>
cialis generic brand
<a href=http://cialisoakdm.com/>generic cialis</a> ’
by お名前(必須) (2017-09-25 21:40) 

お名前(必須)

cialis buy
<a href="http://cialisjrncd.com/">cialis online</a>
cialis tadalafil
<a href=http://cialisjrncd.com/>cheap cialis</a> ’
by お名前(必須) (2017-09-25 21:47) 

KrtpbarcomDE

cialis soft tabs online - http://haycialis.com/
cialis samples <a href=http://haycialis.com/>generic cialis</a> ’
by KrtpbarcomDE (2017-09-26 23:07) 

VtnoFeeRSY

generic cialis from india - https://jrucialis.com
cialis 5mg reviews <a href=https://jrucialis.com>buy cialis</a> ’
by VtnoFeeRSY (2017-09-26 23:07) 

お名前(必須)

medicament cialis - http://cialiskanr.com
generic cialis from india <a href=http://cialiskanr.com>buy cialis</a> ’
by お名前(必須) (2017-09-27 09:19) 

お名前(必須)

5 mg cialis - https://cialisonlin.com
soft cialis tabs <a href=https://cialisonlin.com>generic cialis</a> ’
by お名前(必須) (2017-09-27 09:36) 

お名前(必須)

consolidate student loans
<a href="https://cashshybn.com/">cash advance america</a>
no credit check online payday loans
<a href=https://cashshybn.com/>payday loans</a> ’
by お名前(必須) (2017-09-28 23:20) 

お名前(必須)

cash advances payday loan
<a href="https://cashrvyn.com/">payday loans</a>
payday loan lenders
<a href="https://cashrvyn.com/">payday advance</a> ’
by お名前(必須) (2017-09-28 23:23) 

お名前(必須)

car payday loans
<a href="https://paydayrvjlo.com/">get payday loan</a>
actual payday loan lenders
<a href=https://paydayrvjlo.com/>online payday loan</a> ’
by お名前(必須) (2017-09-28 23:23) 

LmazJidilsOU

low interest rate personal loans
<a href="https://paydayrvyaf.com/">payday loans online</a>
getting out debt
<a href=https://paydayrvyaf.com/>cash advance online</a> ’
by LmazJidilsOU (2017-09-29 06:59) 

お名前(必須)

authorized payday loan
<a href="https://paydaykmae.com">payday loans</a>
personal loans bad credit
<a href="https://paydaykmae.com">payday advances</a> ’
by お名前(必須) (2017-09-30 19:27) 

お名前(必須)

quick payday loan no
<a href="https://loansonlinevaec.org">payday loan</a>
payday loans direct lenders
<a href=https://loansonlinevaec.org>same day payday loan</a> ’
by お名前(必須) (2017-09-30 19:27) 

vwqefloanoYZ

poor credit loans
<a href="https://installmentloanvelam.com">bad credit installment loans</a>
army payday loans
<a href=https://installmentloanvelam.com>personal installment loans</a> ’
by vwqefloanoYZ (2017-10-01 08:45) 

お名前(必須)

bad credit payday loans
<a href="https://leopaydayadvanceonlinefastpayday.org">online payday loans</a>
credit loans
<a href=https://leopaydayadvanceonlinefastpayday.org>payday advance</a> ’
by お名前(必須) (2017-10-01 12:16) 

お名前(必須)

get out debt
<a href="https://badcreditnyrc.org">payday loan</a>
no fax payday loans direct lenders
<a href=https://badcreditnyrc.org>payday loans</a> ’
by お名前(必須) (2017-10-01 17:03) 

お名前(必須)

debt consolidation loan
<a href="https://nowpayday1.com">payday loans online same day</a>
loans now
<a href=https://nowpayday1.com>best payday loans</a> ’
by お名前(必須) (2017-10-01 17:39) 

お名前(必須)

online loans bad credit
<a href="https://paydayllae.com/">pay day loans</a>
500 cash payday loan
<a href=https://paydayllae.com/>payday loans no credit check</a> ’
by お名前(必須) (2017-10-03 22:25) 

JtnbJidilsRF

advances payday loans
<a href="https://paydayloamec.com/">payday loans</a>
personal loans bad credit
<a href=https://paydayloamec.com/>best payday loans</a> ’
by JtnbJidilsRF (2017-10-04 06:09) 

お名前(必須)

personal loan rates
<a href="https://paydayloanswwe.com/">best payday loans</a>
online payday loan companies
<a href=https://paydayloanswwe.com/>payday loans</a> ’
by お名前(必須) (2017-10-04 19:51) 

お名前(必須)

payday loan online no credit check - https://paydayllae.com/
car title and payday loan <a href=https://paydayllae.com/>pay day loans</a> ’
by お名前(必須) (2017-10-05 06:16) 

お名前(必須)

debt consolidation loan - https://cashadmme.com/
car title loan <a href=https://cashadmme.com/>bad credit payday loans</a> ’
by お名前(必須) (2017-10-05 11:07) 

お名前(必須)

cialis for daily use - https://genericgenericcialis.com/
cialis toronto <a href=https://genericgenericcialis.com/>cialis</a>
by お名前(必須) (2017-10-06 22:21) 

FnveemoiptJU

an instant payday loan - https://paydaybdrfs.com/
small business loans <a href=https://paydaybdrfs.com/>payday loans</a> ’
by FnveemoiptJU (2017-10-07 06:04) 

お名前(必須)

1000 no fax payday loan
<a href="https://paydayloawdcr.com/">online payday loans no credit check</a>
debt solutions
<a href="https://paydayloawdcr.com/">online payday loans no credit check</a> ’
by お名前(必須) (2017-10-08 05:38) 

お名前(必須)

car payday loans
<a href="https://paydayloansrvhj.com/">get payday loan</a>
debt settlement companies
<a href=https://paydayloansrvhj.com/>loans payday</a> ’
by お名前(必須) (2017-10-08 10:44) 

お名前(必須)

buy cialis online in usa - http://buycialis-menedpil.com/
cialis over the counter in canada <a href="http://buycialis-menedpil.com/">buy cialis cheap</a> ’
by お名前(必須) (2017-10-11 03:24) 

お名前(必須)

cialis soft tabs online pharmacy - http://cialisonline-pricepil.com/
buy cialis cheap <a href=http://cialisonline-pricepil.com/>cialis</a>
by お名前(必須) (2017-10-11 08:17) 

AqrhdAccurlDI

cialis 5mg reviews - http://genericcialis-viaed.com/
free cialis coupon <a href=http://genericcialis-viaed.com/>generic cialis</a> ’
by AqrhdAccurlDI (2017-10-11 17:45) 

お名前(必須)

cialis 5 mg daily - http://cialisonline-vipmej.com/
cialis online canadian pharmacy <a href=http://cialisonline-vipmej.com/>cialis price</a> ’
by お名前(必須) (2017-10-11 23:12) 

お名前(必須)

cialis drug
<a href="http://buycialis-menedpil.com/">buy cialis online</a>
cialis.com
<a href="http://buycialis-menedpil.com/">cialis dose</a> ’
by お名前(必須) (2017-10-12 06:21) 

お名前(必須)

purchase cialis
<a href="http://cialisonline-pricepil.com/">purchase cialis online</a>
cialis generic
<a href=http://cialisonline-pricepil.com/>order cialis online</a> ’
by お名前(必須) (2017-10-12 10:44) 

お名前(必須)

car title payday loans - https://paydayceinf.org/
instant online loans bad credit <a href=https://paydayceinf.org/>payday loans</a> ’
by お名前(必須) (2017-10-18 00:20) 

お名前(必須)

check into cash - https://paydayobns.com/
fast loans bad credit <a href="https://paydayobns.com/">payday loans online</a> ’
by お名前(必須) (2017-10-18 00:20) 

お名前(必須)

bad credit faxless payday loans - https://loansnerc.org/
instant online loans no credit check <a href=https://loansnerc.org/>payday cash loan</a> ’
by お名前(必須) (2017-10-18 02:47) 

KmrcnmoiptDE

unsecured loan - https://paydaycnrs.net/
direct loans <a href=https://paydaycnrs.net/>best payday loans</a> ’
by KmrcnmoiptDE (2017-10-18 09:51) 

お名前(必須)

low interest loans - https://loans24rjn.com/
canadian payday loan companies <a href=https://loans24rjn.com/>fast payday loans</a> ’
by お名前(必須) (2017-10-18 15:49) 

お名前(必須)

debt consolidation loans bad credit - https://loans7foal.com/
1000 no fax payday loan <a href=https://loans7foal.com/>payday loans online direct lenders only</a> ’
by お名前(必須) (2017-10-18 16:55) 

お名前(必須)

online loans no credit check instant approval
<a href="https://loansnerc.org/">online payday loans</a>
small business loans bad credit
<a href=https://loansnerc.org/>payday loan lenders</a> ’
by お名前(必須) (2017-10-19 15:44) 

お名前(必須)

instant cash
<a href="https://loanscerj.com/">payday loans online</a>
small payday loans online
<a href=https://loanscerj.com/>payday day loans</a> ’
by お名前(必須) (2017-10-20 08:18) 

お名前(必須)

cash advance
<a href="https://loanenav.net/">best payday loans</a>
army payday loans
<a href=https://loanenav.net/>same day payday loan</a> ’
by お名前(必須) (2017-10-20 13:34) 

お名前(必須)

cialis drugs - http://pillsme.com/
cheapest brand cialis <a href="http://pillsme.com/">cheap cialis</a> ’
by お名前(必須) (2017-10-21 00:14) 

お名前(必須)

cialis made in india - http://doverpharma.com/
cialis without prescription overnight <a href=http://doverpharma.com/>online cialis</a> ’
by お名前(必須) (2017-10-21 04:59) 

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。