summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/voice.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/voice.pl b/tools/voice.pl
index 1635b70..109451f 100755
--- a/tools/voice.pl
+++ b/tools/voice.pl
@@ -189,21 +189,21 @@ sub voicestring {
sub encodewav {
our $verbose;
my ($input, $output, $encoder, $encoder_opts) = @_;
+ my $cmd = '';
printf("Encode \"%s\" with %s in file %s\n", $input, $encoder, $output) if $verbose;
switch ($encoder) {
case 'lame' {
- my $cmd = "lame $encoder_opts \"$input\" \"$output\"";
- print("> $cmd\n") if $verbose;
- `lame $encoder_opts "$input" "$output"`;
- `$cmd`;
+ $cmd = "lame $encoder_opts \"$input\" \"$output\"";
}
case 'vorbis' {
- `oggenc $encoder_opts "$input" -o "$output"`;
+ $cmd = "oggenc $encoder_opts \"$input\" -o \"$output\"";
}
case 'speexenc' {
- `speexenc $encoder_opts "$input" "$output"`;
+ $cmd = "speexenc $encoder_opts \"$input\" \"$output\"";
}
}
+ print("> $cmd\n") if $verbose;
+ `$cmd`;
}
sub wavtrim {