-
-
Save yuki777/3c62c7a22e1f4636ad70b2fc22f6d70a to your computer and use it in GitHub Desktop.
open_jtalkに喋らせるTTSコマンド
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
#!/usr/bin/env bash | |
ssh raspi "/home/pi/jsay/jsay.sh \"$(echo "$1" | sed 's/"/\\"/g')\"" |
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
#!/bin/bash | |
option="-x /var/lib/mecab/dic/open-jtalk/naist-jdic -m /usr/share/hts-voice/MMDAgent_Example-1.8/Voice/mei/mei_normal.htsvoice -ow tempfile" | |
echo "$1" | tr '\n' ' ' | /usr/bin/open_jtalk $option | |
aplay -D plughw:1,0 -q tempfile | |
#aplay -D plughw:2,0 -q tempfile | |
rm -f tempfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment