Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
Add Comment
Please, Sign In to add comment