Skip to content

Instantly share code, notes, and snippets.

@a1higgins-oss
a1higgins-oss / google-translate-tts.sh
Created May 7, 2019 17:08
TTS script using google translate
#!/bin/bash
if [ $1 = "-h" ]
then
echo "Usage: $0 outfile language text"
exit 0
fi
cache_dir="/var/cache/google-translate-tts"
tmpfile=$(mktemp /tmp/google-translate-tts.XXXXXXXX)