summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@shack.(none)>2010-05-05 00:02:41 +0200
committerroot <root@shack.(none)>2010-05-05 00:02:41 +0200
commit17be93d900c586ac34d9cab50e4b6622402a48d9 (patch)
treeb45fc15d01aed50d8287d34a028fb01306f748b3
parent59907ceaa2211a3c1600e8febd4752dd18fe896f (diff)
noise/modules/espeak: nicer variable-printer
-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
$*