commit 82b46c582ccee0aee7d91cedf23b649607f8ef27 parent 88df4378e71b8b63e25083bb16a2144474f43bb9 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 30 May 2018 15:16:11 -0400 Update speech synthesis commands Diffstat:
M | links/.commands.sh | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/links/.commands.sh b/links/.commands.sh @@ -32,7 +32,6 @@ alias la='ls -A' ## Open files if [ "$(uname)" != 'Darwin' ]; then open() { xdg-open "$@" &> /dev/null &disown; } - say() { echo "$@" | festival --tts; } fi @@ -121,7 +120,12 @@ alias grep='grep --color=auto' ## speech synthesis -sayfile() { festival --tts "$@"; } +if [ "$(uname)" != 'Darwin' ]; then + say() { echo "$@" | festival --tts; } + sayfile() { festival --tts "$@"; } +else + sayfile() { say -f "$@"; } +fi ## w3m