voicetextを使って喋らせる
キャッシュ機能付き
fi
while read line
do
cachename=temp/$(echo $line | md5sum | cut -b 1-32).wav
echo -n dl:
if [ ! -e $cachename ]; then
curl "https://api.voicetext.jp/v1/tts" \
-o "$cachename" \
-u "XXXXXXXXX APP KEY XXXXXXXX:" \
-d "text=$line" \
-d "speaker=hikari" \
-d "speed=125" 2> /dev/null
fiecho $line
aplay $cachename 2> /dev/null
done <