forked from len0rd/rockbox
Voice generation: Don't call lame twice, and make the command echo work for all encoders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14501 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
52a60df47e
commit
d70857b2da
1 changed files with 6 additions and 6 deletions
|
@ -189,21 +189,21 @@ sub voicestring {
|
||||||
sub encodewav {
|
sub encodewav {
|
||||||
our $verbose;
|
our $verbose;
|
||||||
my ($input, $output, $encoder, $encoder_opts) = @_;
|
my ($input, $output, $encoder, $encoder_opts) = @_;
|
||||||
|
my $cmd = '';
|
||||||
printf("Encode \"%s\" with %s in file %s\n", $input, $encoder, $output) if $verbose;
|
printf("Encode \"%s\" with %s in file %s\n", $input, $encoder, $output) if $verbose;
|
||||||
switch ($encoder) {
|
switch ($encoder) {
|
||||||
case 'lame' {
|
case 'lame' {
|
||||||
my $cmd = "lame $encoder_opts \"$input\" \"$output\"";
|
$cmd = "lame $encoder_opts \"$input\" \"$output\"";
|
||||||
print("> $cmd\n") if $verbose;
|
|
||||||
`lame $encoder_opts "$input" "$output"`;
|
|
||||||
`$cmd`;
|
|
||||||
}
|
}
|
||||||
case 'vorbis' {
|
case 'vorbis' {
|
||||||
`oggenc $encoder_opts "$input" -o "$output"`;
|
$cmd = "oggenc $encoder_opts \"$input\" -o \"$output\"";
|
||||||
}
|
}
|
||||||
case 'speexenc' {
|
case 'speexenc' {
|
||||||
`speexenc $encoder_opts "$input" "$output"`;
|
$cmd = "speexenc $encoder_opts \"$input\" \"$output\"";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
print("> $cmd\n") if $verbose;
|
||||||
|
`$cmd`;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub wavtrim {
|
sub wavtrim {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue