私的AI研究会 > OpenJtalk1
$ sudo apt update ヒット:1 http://ftp.jaist.ac.jp/raspbian buster InRelease ヒット:2 http://archive.raspberrypi.org/debian buster InRelease パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 パッケージはすべて最新です。
$ sudo apt install open-jtalk open-jtalk-mecab-naist-jdic hts-voice-nitech-jp-atr503-m001 パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の追加パッケージがインストールされます: libhtsengine1 以下のパッケージが新たにインストールされます: hts-voice-nitech-jp-atr503-m001 libhtsengine1 open-jtalk open-jtalk-mecab-naist-jdic アップグレード: 0 個、新規インストール: 4 個、削除: 0 個、保留: 0 個。 17.0 MB のアーカイブを取得する必要があります。 この操作後に追加で 109 MB のディスク容量が消費されます。 続行しますか? [Y/n] y 取得:1 http://ftp.jaist.ac.jp/raspbian buster/contrib armhf hts-voice-nitech-jp-atr503-m001 all 1.05-4 [766 kB] 取得:2 http://ftp.jaist.ac.jp/raspbian buster/main armhf libhtsengine1 armhf 1.10-3 [39.3 kB] 取得:3 http://ftp.jaist.ac.jp/raspbian buster/main armhf open-jtalk armhf 1.11-1 [151 kB] 取得:4 http://ftp.jaist.ac.jp/raspbian buster/main armhf open-jtalk-mecab-naist-jdic all 1.11-1 [16.1 MB] 17.0 MB を 49秒 で取得しました (344 kB/s) 以前に未選択のパッケージ hts-voice-nitech-jp-atr503-m001 を選択しています。 (データベースを読み込んでいます ... 現在 165641 個のファイルとディレクトリがインストールされています。) .../hts-voice-nitech-jp-atr503-m001_1.05-4_all.deb を展開する準備をしています ... hts-voice-nitech-jp-atr503-m001 (1.05-4) を展開しています... 以前に未選択のパッケージ libhtsengine1:armhf を選択しています。 .../libhtsengine1_1.10-3_armhf.deb を展開する準備をしています ... libhtsengine1:armhf (1.10-3) を展開しています... 以前に未選択のパッケージ open-jtalk を選択しています。 .../open-jtalk_1.11-1_armhf.deb を展開する準備をしています ... open-jtalk (1.11-1) を展開しています... 以前に未選択のパッケージ open-jtalk-mecab-naist-jdic を選択しています。 .../open-jtalk-mecab-naist-jdic_1.11-1_all.deb を展開する準備をしています ... open-jtalk-mecab-naist-jdic (1.11-1) を展開しています... libhtsengine1:armhf (1.10-3) を設定しています ... hts-voice-nitech-jp-atr503-m001 (1.05-4) を設定しています ... open-jtalk-mecab-naist-jdic (1.11-1) を設定しています ... open-jtalk (1.11-1) を設定しています ... libc-bin (2.28-10+rpi1) のトリガを処理しています ... man-db (2.8.5-2) のトリガを処理しています ...
$ ls Downloads MMDAgent_Example-1.8.zip raspi1a-sample.zip raspi2-sample.zip $ mv Downloads/MMDAgent_Example-1.8.zip work/ $ cd work $ ls MMDAgent_Example-1.8.zip bb mjpg-streamer streamer-start.sh webiopi $ unzip MMDAgent_Example-1.8.zip Archive: MMDAgent_Example-1.8.zip creating: MMDAgent_Example-1.8/ inflating: MMDAgent_Example-1.8/MMDAgent_Example.dic inflating: MMDAgent_Example-1.8/MMDAgent_Example.fph : : inflating: MMDAgent_Example-1.8/Voice/takumi/takumi_normal.htsvoice inflating: MMDAgent_Example-1.8/Voice/takumi/takumi_sad.htsvoice $ ls MMDAgent_Example-1.8 MMDAgent_Example-1.8.zip bb mjpg-streamer streamer-start.sh webiopi $ sudo cp -r MMDAgent_Example-1.8/Voice/mei /usr/share/hts-voice/
$ cd ../wget $ wget https://raw.githubusercontent.com/neuralassembly/raspi/master/speech.sh --2020-08-02 16:11:17-- https://raw.githubusercontent.com/neuralassembly/raspi/master/speech.sh raw.githubusercontent.com (raw.githubusercontent.com) をDNSに問いあわせています... 151.101.88.133 raw.githubusercontent.com (raw.githubusercontent.com)|151.101.88.133|:443 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 814 [text/plain] `speech.sh' に保存中 speech.sh 100%[===================================================================>] 814 --.-KB/s 時間 0.001s 2020-08-02 16:11:17 (1.28 MB/s) - `speech.sh' へ保存完了 [814/814] $ ls WebIOPi-0.7.1 WebIOPi-0.7.1.tar.gz speech.sh $ chmod a+x speech.sh $ sudo mv speech.sh /usr/local/bin
$ sudo vi /usr/local/bin/speech.sh : # for the device on Raspberry Pi #aplay -q $TMPVOICE # for USB sound card (old Raspbian) # or earphone jack on Raspberrry Pi (Raspberry Pi OS 2020-05-27 or later) aplay -D plughw:1,0 -q $TMPVOICE # for USB sound card (Raspberry Pi OS 2020-05-27 or later) #aplay -D plughw:2,0 -q $TMPVOICE :
$ sudo vi /usr/local/bin/speech.sh : #HTSVOICE=/usr/share/hts-voice/nitech-jp-atr503-m001/nitech_jp_atr503_m001.htsvoice #HTSVOICE=/usr/share/hts-voice/mei/mei_happy.htsvoice #HTSVOICE=/usr/share/hts-voice/mei/mei_angry.htsvoice #HTSVOICE=/usr/share/hts-voice/mei/mei_bashful.htsvoice HTSVOICE=/usr/share/hts-voice/mei/mei_normal.htsvoice #HTSVOICE=/usr/share/hts-voice/mei/mei_sad.htsvoice :
$ speech.sh ラズベリーパイ