diff options
author | root <root@shack.(none)> | 2010-05-05 00:02:41 +0200 |
---|---|---|
committer | root <root@shack.(none)> | 2010-05-05 00:02:41 +0200 |
commit | 17be93d900c586ac34d9cab50e4b6622402a48d9 (patch) | |
tree | b45fc15d01aed50d8287d34a028fb01306f748b3 /modules/espeak | |
parent | 59907ceaa2211a3c1600e8febd4752dd18fe896f (diff) |
noise/modules/espeak: nicer variable-printer
Diffstat (limited to 'modules/espeak')
-rwxr-xr-x | modules/espeak | 15 |
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 "[35;4m$1[;35m = [32m$2[m" +} + 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 "[31mespeak -p \"$pitch\" -v \"$lang\" \"$*\"[m" >&2 espeak -a $a -k $k -p $p -v $v -g $g<<EOF $* |