summaryrefslogtreecommitdiffstats
path: root/modules/espeak
blob: 4aad90b982e0593ed85edf0c7fbad944bfe44dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh

print_var() {
  echo "$1 = $2"
}

case "$1" in
  (--help) echo say something with espeak ;;
  (*)
    p="${noise_pitch-100}"
    v="${noise_lang-de}"
    k="${noise_capital-0}"
    a="${noise_amplitude-100}"
    g="${noise_gap-1}"
    print_var pitch $p
    print_var lang $v
    print_var capital $k
    print_var amplitude $a
    print_var gap $g
    #echo "espeak -p \"$pitch\" -v \"$lang\" \"$*\"" >&2
    (espeak --stdout -a $a -k $k -p $p -v $v -g $g | paplay)<<EOF
$*
EOF
esac