Skip to content

Commit

Permalink
don't exit early; process every RTTM line
Browse files Browse the repository at this point in the history
assume we process every line in RTTM, don't look for standard symbols in certain columns
  • Loading branch information
riebling authored Aug 16, 2018
1 parent 817cdcf commit b3e4deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-rttm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ scpfile=$workdir/$basename.scp
# RTTM format:
# Type file chan tbeg tdur ortho stype name conf Slat
# math: convert RTTM seconds to HTK (10ms default) frames = multiply by 100
grep LEXEME $2 | awk -v base="$basename" -v feats="$featfile" '{begg=$4*100;endd=($4+$5)*100; print base "_" begg "_" endd "="feats "[" begg "," endd "]"}' > $scpfile
# assume we process every line in RTTM, don't look for standard symbols in certain columns
cat $2 | awk -v base="$basename" -v feats="$featfile" '{begg=$4*100;endd=($4+$5)*100; print base "_" begg "_" endd "="feats "[" begg "," endd "]"}' > $scpfile

exit
# first generate HTK features
HCopy -T 2 -C htkconfig $1 $featfile

Expand Down

0 comments on commit b3e4deb

Please sign in to comment.