Last active
August 29, 2015 14:14
-
-
Save yawara/b138b514736c4aeaf7ef to your computer and use it in GitHub Desktop.
Mac; OS X Mavericsにgccを使ってOpenJTalkを導入する ref: http://qiita.com/yawara/items/86284ee5ed63dd96c9d1
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
| mkdir -p /usr/local/OpenJTalk/voice |
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
| brew install gcc |
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
| tar xzvf hts_engine_API-1.09.tar.gz | |
| cd hts_engine_API-1.09 | |
| CC=/usr/local/bin/gcc-4.9 CXX=/usr/local/bin/g++-4.9 ./configure --prefix=/usr/local/OpenJTalk | |
| make && make install |
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
| tar xzvf open_jtalk-1.08.tar.gz | |
| cd open_jtalk-1.08 |
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
| cat<<EOF>manobi.patch | |
| *** jpcommon/jpcommon_label.c.orig 2012-12-24 17:18:53.000000000 +0900 | |
| --- jpcommon/jpcommon_label.c 2013-05-27 16:35:45.195252424 +0900 | |
| *************** | |
| *** 284,289 **** | |
| --- 284,290 ---- | |
| if (index == a) | |
| break; | |
| } | |
| + if (i > 3) i = 3; | |
| return i; | |
| } | |
| *************** | |
| *** 383,388 **** | |
| --- 384,390 ---- | |
| for (i = 0, index = m->next; index != NULL; index = index->next) | |
| i++; | |
| + if (i > 10) i = 10; | |
| return index_mora_in_utterance(m) + i; | |
| } | |
| EOF |
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
| patch -p0 < manobi.patch |
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
| CC=/usr/local/bin/gcc-4.9 CXX=/usr/local/bin/g++-4.9 ./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 | |
| make && make install |
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
| 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 |
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
| open_jtalk -x /usr/local/OpenJTalk/dic -m /usr/local/OpenJTalk/voice/m001/nitech_jp_atr503_m001.htsvoice -ow out.wav sample.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment