voxforge.org
VoxForge Dev
Show
Ignore:
Timestamp:
05/27/08 12:38:46 (6 months ago)
Author:
kmaclean
Message:

AudioSegmentation scripts -snapshot

Files:

Legend:

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

    r2593 r2595  
    1919### Class Variables 
    2020#################################################################### 
    21 #my $average_sentence_length = 13; 
    22 #my $max_sentence_length = 18; 
    23 #my $min_pause_for_sentence_break = 5000000; # HTK time format - 100 millisecond increments 
    2421my (@max_sentences, $max_sentence_length_found, $max_sentence_length_linenumber); 
    25 #my $min_sentence_length_found = $max_sentence_length; 
    2622my $min_sentence_length_found = 0; 
    2723my $min_sentence_length_linenumber = 0; 
     
    3127 
    3228=head1 METHODS (not user accessible) 
    33  
    34 =cut 
    3529 
    3630=head2 new  
     
    477471        my $debug = $self->{"debug"};    
    478472        my $log = $self->{"log"}; 
    479                  
     473 
     474        print "Verify Prompts (each dot represents a processed prompt file):\n";                 
    480475        open(PROMPTS, "<AudioBook/interim_files/prompts") or confess ("cannot open AudioBook/output_files/prompts for output"); 
    481476        my @promptScores;        
     
    490485                my $avgLogLikelihoodPerFrame = $self->_processHviteLog($wavfilename); 
    491486                push (@promptScores,[$avgLogLikelihoodPerFrame,$fileID,"@promptList"]); 
    492         } 
     487                print "\."; 
     488        } 
     489        print "\n"; 
    493490        close (PROMPTS);                 
    494491        close (MLF);             
     
    497494         
    498495        open(LOG,">>$log") or confess ("cannot open $log file");         
    499         print LOG "\nprompts with the lowest average log likelihood per frame:\n"; 
    500         print LOG "\n(confirm anything with an avgloglik of less than 60):\n";         
    501         print LOG   "---------------------------------------------------------\n"; 
     496        print LOG "\nTop 15 prompts with the lowest average log likelihood per frame\n"; 
     497        print LOG   "(confirm anything with an avg log likelihood of less than 60):\n";        
     498        print LOG   "---------------------------------------------------------------\n"; 
    502499        my $x;   
    503500        foreach my $line (@sortedlist) { 
    504501                print LOG "$$line[0] $$line[1] $$line[2]\n"; 
    505502                $x++; 
    506                 last if ($x > 15); 
     503                last if ($x > 14); 
    507504        } 
    508505        close LOG;