voxforge.org
VoxForge Dev

root/Trunk/Scripts/AcousticModel_scripts/AcousticModel/QuickStart.pm

Revision 2270, 2.3 kB (checked in by kmaclean, 1 year ago)

Flac audio processing updates & GPL v3 updates

Line 
1 #!/usr/bin/perl -w
2 ####################################################################
3 ###
4 ### script name: QuickStart.pm
5 ### modified by: Ken MacLean
6 ### email: contact@voxforge.org
7 ### Date: 2007.04.25
8 ### Version: 0.1
9 ###             
10 ### Copyright (C) 2007 Ken MacLean
11 ###
12 ### This program is free software; you can redistribute it and/or
13 ### modify it under the terms of the GNU General Public License
14 ### as published by the Free Software Foundation; either version 3
15 ### of the License, or (at your option) any later version.
16 ###
17 ### This program is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 ### GNU General Public License for more details.
21 ###
22 ### Change History:
23 ####################################################################
24 package QuickStart;
25 use strict;
26 # modules
27
28 my $command;
29 ####################################################################
30 # Subroutines
31 ####################################################################
32 sub Process {
33         my ($parms, $Nightly_subdir) = @_;
34                 my $debug = $$parms{"debug"};
35                 my $QSdir = $$parms{"QSdir"};
36                 my $Nightly_dirname = $$parms{"Nightly_dirname"};
37                 my $HTKdir = $$parms{"HTK_dir"};                       
38         $command = ("cp -r $QSdir $Nightly_dirname");  print "$command\n" if $debug;system($command) == 0 or die "system $command failed: $?"
39         # Linux
40         my $TargetQSlindir =("$Nightly_dirname/QuickStart/Linux/julius-3.5.2-quickstart-linux/acoustic_model_files");
41         $command = ("cp $HTKdir/interim_files/hmm15/hmmdefs $TargetQSlindir"); print "$command\n" if $debug;system($command) == 0 or die "system $command failed: $?"
42         $command = ("cp $HTKdir/interim_files/tiedlist $TargetQSlindir");print "$command\n" if $debug;system($command) == 0 or die "system $command failed: $?"
43         # Windows
44         my $TargetQSwindir =("$Nightly_dirname/QuickStart/Windows/julius-3.5.2-quickstart-windows/acoustic_model_files");
45         $command = ("cp $HTKdir/interim_files/hmm15/hmmdefs $TargetQSwindir"); print "$command\n" if $debug;system($command) == 0 or die "system $command failed: $?"
46         $command = ("cp $HTKdir/interim_files/tiedlist $TargetQSwindir"); print "$command\n" if $debug;system($command) == 0 or die "system $command failed: $?"
47         return 1;
48 }
49 1;
Note: See TracBrowser for help on using the browser.