voxforge.org
VoxForge Dev

Changeset 2598

Show
Ignore:
Timestamp:
05/29/08 23:07:04 (4 months ago)
Author:
kmaclean
Message:

AudioSegmentation scripts - Sequitor G2P pronunciation alternatives validation to Audio using HVite Forced Alignment - snapshot

Files:

Legend:

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

    r2597 r2598  
    175175=head2 validateAlternatePronunciations  
    176176 
    177 Todo: This might need to go in a new Prompts class 
     177Add alternate pronunications generated by Sequitor G2P to original dict file, then perform forced alingment to see which 
     178pronunciation that HVite picks, based on the phonemes it recognizes from the audio. 
     179 
     180Also create a folder containing the missing words and a prompt file containing with only those prompts that contain the missing words, 
     181for manual confirmation of pronunciations. 
    178182 
    179183=cut 
     
    219223        my $altDict = $self->{"altDict"};        
    220224        my ($aligned_out, $log) = AudioBook::Audio::forceAlign($self, $promptID, $promptLine, $altDict); 
    221         open(ALIGNED_OUT,"$aligned_out") or confess ("cannot open $prompts file"); 
    222         my @phoneList
     225        open(ALIGNED_OUT,"$aligned_out") or confess ("cannot open $aligned_out file"); 
     226        my (@phoneList,$gatherPhones)
    223227        while (my $line = <ALIGNED_OUT>) { 
    224228                my @line = split(/\s/, $line); 
     
    231235                        } 
    232236                } 
    233                 if $gatherPhones
     237                if ($gatherPhones)
    234238                        push (@phoneList,$phone); 
    235239                } 
     
    239243 
    240244=head2 _getMissingWordList  
     245 
     246read missing word list into an array for processing 
    241247 
    242248=cut