<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Comments</title>
<link>http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments</link>
<description></description>

<item>
<title>Running HTK_Compile_Model.sh on Ubuntu</title>
<link>http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/running-htk_compile_model_sh-on-ubuntu</link>
<description>You may encounter the following errors if you try to run ./HTK_Compile_Model.sh on Ubuntu ==./HTK_Compile_Model.sh: 215: let: not found If you are fast enough to press CTRL+C, you may also notice something like -e     init on the top.  This is because Ubuntu&#x27;s sh command in /bin is mapped to /bin/dash instead of /bin/bash. Doing the following will sort out the issue sudo rm /bin/sh sudo  ln -s /bin/bash /bin/sh </description>
<guid isPermaLink="true">http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/running-htk_compile_model_sh-on-ubuntu</guid>
<pubDate>Wed, 02 Jul 2008 16:07:44 -0500</pubDate>
</item>

<item>
<title>How to speed up Step 7 of the script</title>
<link>http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/how-to-speed-up-step-7-of-the-script</link>
<description>from this post: Ken, Here is my update of Step 7 fragment of the script:   make_hmm4 () {     LINE=&#x22;start&#x22;     NUM=1  rm -rf ./interim_files/hmm4/hmmdefs.tmp1  rm -rf ./interim_files/hmm4/hmmdefs.tmp2       while [ `echo ${LINE} | awk &#x27;{ print $1 }&#x27;` != &#x22;&#x22; ];     do   LINE=`cat -n ./interim_files/hmm4/hmm_sil | grep &#x26;#94;[[:space:]]*${NUM}[[:space:]] | sed s/&#x26;#94;[[:space:]]*[[:digit:]]*//g`   if [ `echo ${LINE} | awk &#x27;{ print $2 }&#x27;` = &#x22;\&#x22;sil\&#x22;&#x22; ]; then             while [ `echo ${LINE} | awk &#x27;{ print $1 }&#x27;` != &#x22;&#x26;lt;ENDHMM&#x26;gt;&#x22; ];             do                 echo ${LINE} &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1                 echo ${LINE} &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp2 #    print_process ${NUM}     let &#x22;NUM += 1&#x22;     LINE=`cat -n ./interim_files/hmm4/hmm_sil | grep &#x26;#94;[[:space:]]*${NUM}[[:space:]] | sed s/&#x26;#94;[[:space:]]*[[:digit:]]*//g`    done        echo ${LINE} &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1    NUM2=1    while [ ${NUM2} != &#x22;28&#x22; ];    do     LINE2=`cat -n ./interim_files/hmm4/hmmdefs.tmp2 | grep &#x26;#94;[[:space:]]*${NUM2}[[:space:]] \     | sed s/&#x26;#94;[[:space:]]*[[:digit:]]*//g`       case ${NUM2} in      1 )       echo ${LINE2} | sed s/~h\ \&#x22;sil\&#x22;/~h\ \&#x22;sp\&#x22;/g &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      2 )       echo ${LINE2} &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      3 )       echo ${LINE2} | sed s/5/3/g &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      10 )       echo ${LINE2} | sed s/3/2/g &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      11 | 12 | 13 | 14 | 15)       echo ${LINE2} &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      22 )       echo ${LINE2} | sed s/5/3/g &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      24 )       echo &#x22;0.000000e+000 1.000000e+000 0.000000e+000&#x22; &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      25 )       echo &#x22;0.000000e+000 0.900000e+000 0.100000e+000&#x22; &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;      26 )       echo &#x22;0.000000e+000 0.000000e+000 0.000000e+000&#x22; &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1       ;;     esac     let &#x22;NUM2 += 1&#x22;    done         fi   echo ${LINE} &#x26;gt;&#x26;gt; ./interim_files/hmm4/hmmdefs.tmp1 #  print_process ${NUM}   let &#x22;NUM += 1&#x22;  done  cat ./interim_files/hmm4/hmm_before_sil ./interim_files/hmm4/hmmdefs.tmp1 &#x26;gt; ./interim_files/hmm4/hmmdefs  rm -rf ./interim_files/hmm4/hmmdefs.tmp1  rm -rf ./interim_files/hmm4/hmmdefs.tmp2  rm -rf ./interim_files/hmm4/hmm_before_sil  rm -rf ./interim_files/hmm4/hmm_sil  return 0 } extract_sil_model(){    SWITCH=0  BEGIN=0  NUM2=0  for TOKEN in `cat -n ./interim_files/hmm4/hmmdefs `  do   if [ &#x22;${TOKEN}&#x22; = &#x22;\&#x22;sil\&#x22;&#x22; ]; then    SWITCH=1   fi   if [ &#x22;${SWITCH}&#x22; = &#x22;1&#x22; ]; then    YES=$(echo $TOKEN | grep &#x26;#94;[[:digit:]+])    if [ &#x22;1${YES}1&#x22; != &#x22;11&#x22; ]; then #### supposed to be [ $YES !=  ]; but didn&#x27;t work ?     SWITCH=0     BEGIN=$TOKEN    fi   fi  done  TOKEN=`wc ./interim_files/hmm4/hmmdefs | awk &#x27;{ print $1 }&#x27;`  END=$TOKEN  let NUM=END-BEGIN+2  tail -$NUM ./interim_files/hmm4/hmmdefs &#x26;gt; ./interim_files/hmm4/hmm_sil  let NUM=BEGIN-2  head -$NUM ./interim_files/hmm4/hmmdefs &#x26;gt; ./interim_files/hmm4/hmm_before_sil  return 0 } ....... print_heading &#x22;Step 7 - Fixing the Silence Model&#x22;  cp ./interim_files/hmm3/. ./interim_files/hmm4 -R  echo -e &#x27;making hmm4\n&#x27;  extract_sil_model  make_hmm4 2&#x26;gt; /dev/null ....... Script</description>
<guid isPermaLink="true">http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/how-to-speed-up-step-7-of-the-script</guid>
<pubDate>Thu, 19 Jun 2008 16:02:54 -0500</pubDate>
</item>

<item>
<title>Execution stops at step 5</title>
<link>http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/execution-stops-at-step-5</link>
<description>The first time I ran HTK_Compile_Model.sh it stopped at step 5 and complained that it could not find sample1.wav. The message indicated it was looking in a directory one level up, but the Howto calls for the wav files to be stored two levels up in voxforge/train/wav directory.  I found that after: mkdir auto/train and mkdir auto/train/wav, copy all sample*.wav files to this new wav directory mkdir auto/train/mfcc then the script ran perfectly to the end. Maybe I missed something, but hope it helps.  </description>
<guid isPermaLink="true">http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/execution-stops-at-step-5</guid>
<pubDate>Wed, 05 Mar 2008 08:16:09 -0600</pubDate>
</item>

<item>
<title>STEEP 5 MISSING</title>
<link>http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/steep-5-missing</link>
<description>Hi,</description>
<guid isPermaLink="true">http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/script/comments/steep-5-missing</guid>
<pubDate>Fri, 28 Dec 2007 05:24:33 -0600</pubDate>
</item>

</channel>
</rss>
