Skip to content

Instantly share code, notes, and snippets.

@yawara
Last active January 27, 2016 18:36
Show Gist options
  • Select an option

  • Save yawara/ba4c94c9029cbd099af0 to your computer and use it in GitHub Desktop.

Select an option

Save yawara/ba4c94c9029cbd099af0 to your computer and use it in GitHub Desktop.
Mac; OS X MavericsにOpenJTalkを導入する ref: http://qiita.com/yawara/items/2cb20f7bbb07615229ec
brew install open-jtalk
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
mkdir -p /usr/local/OpenJTalk/voice
tar xzvf hts_engine_API-1.09.tar.gz
cd hts_engine_API-1.09
./configure --prefix=/usr/local/OpenJTalk
make && make install
tar xzvf open_jtalk-1.08.tar.gz
cd open_jtalk-1.08
./configure --prefix=/usr/local/OpenJTalk --with-hts-engine-header-path=/usr/local/OpenJTalk/include --with-hts-engine-library-path=/usr/local/OpenJTalk/lib --with-charset=UTF-8
sed -e 's/-finput-charset=UTF-8 -fexec-charset=UTF-8//' config.status > tmp
mv tmp config.status && rm tmp
make && make install
tar xzvf hts_voice_nitech_jp_atr503_m001-1.05.tar.gz
mv hts_voice_nitech_jp_atr503_m001-1.05 /usr/local/OpenJTalk/voice
cd /usr/local/OpenJTalk/voice
ln -s hts_voice_nitech_jp_atr503_m001-1.05 m001
open_jtalk -x /usr/local/OpenJTalk/dic -m /usr/local/OpenJTalk/voice/m001/nitech_jp_atr503_m001.htsvoice -ow out.wav sample.txt
brew install open-jtalk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment