Skip to content

Instantly share code, notes, and snippets.

@wingsuitist
Last active March 15, 2018 06:22
Show Gist options
  • Save wingsuitist/37f002e2cdacf80dd4562eee00f99542 to your computer and use it in GitHub Desktop.
Save wingsuitist/37f002e2cdacf80dd4562eee00f99542 to your computer and use it in GitHub Desktop.
put this function in your .bash_profile
tooloud() {
messages=( "beep beep" "lower voice" "a bit to loud" "the puppies are sleeping" "you are waking up the kittens" "hello hello")
voices=( "Alex" "Daniel" "Serena" "Tessa" "Veena")
while true; do \
soundmeter --trigger +3000 4 --action stop
randomMessage=$[$RANDOM % ${#messages[@]}]
randomVoice=$[$RANDOM % ${#voices[@]}]
say -v ${voices[randomVoice]} ${messages[randomMessage]}
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment