Skip to content

Instantly share code, notes, and snippets.

@fujikky
Last active August 29, 2015 14:03
Show Gist options
  • Save fujikky/4534a646b80af7a8b92b to your computer and use it in GitHub Desktop.
Save fujikky/4534a646b80af7a8b92b to your computer and use it in GitHub Desktop.
モヤさまショウ君メーカー
#!/bin/sh
API_KEY="YOUR_API_KEY"
TEMP_FILE="showkun.wav"
curl -s "https://api.voicetext.jp/v1/tts" \
-o "${TEMP_FILE}" \
-u "${API_KEY}:" \
-d "text=${1}" \
-d "speaker=show"
afplay $TEMP_FILE
rm $TEMP_FILE
@fujikky
Copy link
Author

fujikky commented Jul 10, 2014

Usage

./showkun.sh もやもやさまーずツー

@fujikky
Copy link
Author

fujikky commented Jul 10, 2014

APIキーの取得はこちらから
https://cloud.voicetext.jp/webapi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment