summaryrefslogtreecommitdiffstats
path: root/modules/espeak
diff options
context:
space:
mode:
Diffstat (limited to 'modules/espeak')
-rwxr-xr-xmodules/espeak15
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/espeak b/modules/espeak
index cda70fc8..1f5c901d 100755
--- a/modules/espeak
+++ b/modules/espeak
@@ -1,4 +1,9 @@
#! /bin/sh
+
+print_var() {
+ echo "$1 = $2"
+}
+
case "$1" in
(--help) echo say something with espeak ;;
(*)
@@ -7,11 +12,11 @@ case "$1" in
k="${noise_capital-0}"
a="${noise_amplitude-100}"
g="${noise_gap-1}"
- echo pitch: $p
- echo lang: $v
- echo capital: $k
- echo amplitude: $a
- echo gap: $g
+ 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 -a $a -k $k -p $p -v $v -g $g<<EOF
$*