first post (for design check)
Hi, I'm taneyats.
I will post:
Any comment is welcome! Thank you.
text-before-h6
I will post:
- Photos and techs of DSLR
- Programming (Java, Javascrpt, PHP, HTML and CSS)
- Raspberry Pi development
- Calligraphy and other my hobbies...
Photograph
Misasa-onsen Hot springs (Tottori, Japan)
Tower of the Sun (Osaka, Japan)
Doshisha University (Kyoto, Japan)
Any comment is welcome! Thank you.
Programming
Snippet
/foo/bar/echo.sh
<!-- comment -->
#引数のチェック
if [ $# -ne 1 ]; then
echo "invalid argument."
exit 1;
fi
#一時ファイル
DIR=./tmp
FILE=${DIR}/${1}.wav
#ファイル生成
echo "$1" | open_jtalk \
-m /usr/share/open_jtalk_voice/tohoku-f01-neutral.htsvoice \
-x /var/lib/mecab/dic/open-jtalk/naist-jdic \
-r 1.1 \
-ow ${FILE} && \
#再生
sudo aplay --quiet ${FILE}
while :
do
#プロンプト
read -p "save? [Y/n/a(play again)]: " RES
#分岐
case ${RES} in
[nN]* )
echo "did not save the file.";
rm ${FILE};
break;;
[aA]* )
sudo aplay --quiet ${FILE};
continue;;
* )
echo "saved.";
break;;
esac
done
exit 0;
headline
h1
The quick brown fox jumps over the lazy dog.h2
The quick brown fox jumps over the lazy dog.h3
The quick brown fox jumps over the lazy dog.h4
The quick brown fox jumps over the lazy dog.h5
The quick brown fox jumps over the lazy dog.h6
The quick brown fox jumps over the lazy dog.text-before-h6
Comments
Post a Comment