voxforge.org
VoxForge Dev
Show
Ignore:
Timestamp:
06/09/08 21:09:55 (6 months ago)
Author:
kmaclean
Message:

AudioSegmentation scripts - snapshot

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/Scripts/Audio_scripts/AudioSegmentation/AudioBook/Text.pm

    r2606 r2608  
    1616use Lingua::EN::Numbers::Years; 
    1717 
    18 =head1 METHODS (not user accessible) 
     18=head1 CLASS METHODS 
    1919 
    2020=cut 
     
    3434        return $self; 
    3535}     
     36 
     37=head2 createMLFFile  
     38 
     39creates an MLF (HTK required "Multi-Label File") file for a prompt. 
     40  
     41=cut 
     42 
     43sub createPromptMLF { # public 
     44        my ($class,$fileID,$promptLine,$segmentMlf)= @_; 
     45        open(MLF, ">$segmentMlf") or confess ("cannot open $segmentMlf for output");     
     46        print MLF "#!MLF!#\n"; #  
     47        print MLF "\"AudioBook/interim_files/missingWordsFolder/$fileID.lab\"\n"; 
     48        foreach my $word (@$promptLine) { 
     49                print MLF "$word\n"; 
     50        } 
     51        print MLF "\.\n"; 
     52} 
     53 
     54=head1 INSTANCE METHODS 
    3655 
    3756=head2 _clean