Skip to content

Instantly share code, notes, and snippets.

@jstanley0
Created July 11, 2012 15:11
Show Gist options
  • Save jstanley0/3091035 to your computer and use it in GitHub Desktop.
Save jstanley0/3091035 to your computer and use it in GitHub Desktop.
legion.sh
#!/bin/sh
rm -f /tmp/legion*.aiff
say -v ? | cut -c 1-20 | sed 's/ *$//' | while read voice
do say -v "$voice" $1 -o "/tmp/legion-$voice.aiff"
done
sox -m /tmp/legion-*.aiff /tmp/legion.aiff
rm -f /tmp/legion-*.aiff
play /tmp/legion.aiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment