Last active
October 23, 2024 00:46
-
-
Save ikegami-yukino/da0e43811e6bb959ba7e to your computer and use it in GitHub Desktop.
Install hts_engine, hts_voice and open_jtalk
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
HTS_ENGINE_VERSION=1.10 | |
HTS_VOICE_VERSION=1.05 | |
OPENJTALK_VERSION=1.10 | |
pushd . | |
cd /tmp | |
wget http://downloads.sourceforge.net/hts-engine/hts_engine_API-${HTS_ENGINE_VERSION}.tar.gz | |
tar xzf hts_engine_API-${HTS_ENGINE_VERSION}.tar.gz | |
cd hts_engine_API-${HTS_ENGINE_VERSION} | |
./configure | |
make | |
sudo make install | |
cd /tmp | |
wget http://downloads.sourceforge.net/open-jtalk/hts_voice_nitech_jp_atr503_m001-${HTS_VOICE_VERSION}.tar.gz | |
tar xzvf hts_voice_nitech_jp_atr503_m001-${HTS_VOICE_VERSION}.tar.gz | |
cd hts_voice_nitech_jp_atr503_m001-${HTS_VOICE_VERSION} | |
mkdir -p /usr/local/share/openjtalk | |
mv nitech_jp_atr503_m001.htsvoice /usr/local/share/openjtalk | |
cd /tmp | |
wget http://downloads.sourceforge.net/open-jtalk/open_jtalk-${OPENJTALK_VERSION}.tar.gz | |
tar xzf open_jtalk-${OPENJTALK_VERSION}.tar.gz | |
cd open_jtalk-${OPENJTALK_VERSION} | |
# wget -O https://gist.githubusercontent.com/ikegami-yukino/51cb4feb0739412be2e1/raw/28eff6bdf1b187f2bad7270571e50faf2d80db27/jpcommon_label.c.patch | |
# patch jpcommon/jpcommon_label.c < jpcommon_label.c.patch | |
./configure --with-charset=utf-8 | |
make | |
sudo make install | |
sudo mv /usr/local/dic /usr/local/lib/mecab/dic/ojt-naist-jdic | |
popd | |
rm -r /tmp/hts_engine* | |
rm -r /tmp/hts_voice* | |
rm -r /tmp/open_jtalk* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment