dotfiles/tridactyl/scripts/speak

20 lines
310 B
Plaintext
Raw Normal View History

2019-09-21 20:24:19 +00:00
#!/bin/bash
2019-12-11 05:52:23 +00:00
# -*- sh -*-
2019-09-21 20:24:19 +00:00
message="$@"
case "$OSTYPE" in
darwin*)
say "$message"
;;
linux*)
mimic \
--setf duration_stretch=0.65 \
2019-09-21 20:24:19 +00:00
-t "$message" \
-voice 'kal16'
#-voice 'slt'
2019-09-21 20:24:19 +00:00
;;
*)
echo "unsupported OS"
esac