dotfiles/tridactyl/scripts/speak

20 lines
310 B
Bash
Executable File

#!/bin/bash
# -*- sh -*-
message="$@"
case "$OSTYPE" in
darwin*)
say "$message"
;;
linux*)
mimic \
--setf duration_stretch=0.65 \
-t "$message" \
-voice 'kal16'
#-voice 'slt'
;;
*)
echo "unsupported OS"
esac