Last active
March 2, 2017 19:24
-
-
Save samba/0919ad300afbf941e3ded3e46da75de6 to your computer and use it in GitHub Desktop.
Scripted conversations in your Mac.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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