Last active
March 15, 2018 06:22
-
-
Save wingsuitist/37f002e2cdacf80dd4562eee00f99542 to your computer and use it in GitHub Desktop.
put this function in your .bash_profile
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
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