From 5760e744776bfd4189d0c8fdbe7569e877c46311 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 21 Sep 2019 16:24:19 -0400 Subject: [PATCH] Added actual script. --- tridactyl/scripts/speak | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tridactyl/scripts/speak diff --git a/tridactyl/scripts/speak b/tridactyl/scripts/speak new file mode 100755 index 0000000..c5e4aab --- /dev/null +++ b/tridactyl/scripts/speak @@ -0,0 +1,18 @@ +#!/bin/bash + +message="$@" +case "$OSTYPE" in + darwin*) + say "$message" + ;; + linux*) + mimic \ + --setf duration_stretch=0.5 \ + -t "$message" \ + -voice 'slt_hts' + #-voice 'kal16' + ;; + *) + echo "unsupported OS" +esac +