~dricottone/my-utils

ref: 86e36bedac92f051a285f01385f38446a71db9a6 my-utils/whisper -rwxr-xr-x 272 bytes
86e36bedDominic Ricottone Small fixes recommended by shellcheck 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# whisper
# =======
# Usage: whisper [TEXT]
#
# Wrapper on `espeak` to mirror macOS's `say` using whisper voice.

if [ $# -lt 1 ]; then
  TEXT="present day <break time='1000ms'/> present time."
else
  TEXT=$*
fi

espeak -v +whisper -s 8 -m "$TEXT" 2>/dev/null