Skip to content

Instantly share code, notes, and snippets.

@samba
Last active March 2, 2017 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samba/0919ad300afbf941e3ded3e46da75de6 to your computer and use it in GitHub Desktop.
Save samba/0919ad300afbf941e3ded3e46da75de6 to your computer and use it in GitHub Desktop.
Scripted conversations in your Mac.
#!/bin/sh
# Execute directly: sh converse.sh script.text
which say || exit 1
cat $@ | grep -v '^#' | tr -s ':' '\t' | while read name content; do say -v $name "$content"; done
# Voices are identified by name.
# List options: say -v ?
Tessa: This was a fantastic meal.
Alex: Yeah, I really enjoyed the salmon.
Victoria: What's for dessert?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment