<?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/data-prep/step-3/comments</link>
<description></description>

<item>
<title>recording script</title>
<link>http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/data-prep/step-3/comments/recording-script</link>
<description>Linux users who have arecord and aplay can use this script:   #!/bin/bash prompts=$1 dest=$2 if [ ! -f &#x22;$prompts&#x22; ]; then     echo usage $0 &#x27;&#x26;lt;prompts&#x26;gt;&#x27; [folder] fi if [ &#x22;a$dest&#x22; = a ]; then     dest=. else     dest=${dest%/} fi echo Please press &#x26;#94;C after reading each prompt echo -n Press enter to start&#x27; &#x27; read while read line &#x26;lt;&#x26;amp;3; do     line=${line#\*/}     name=${line%% *}     prompt=${line#* }     file=&#x22;$dest/$name.wav&#x22;     if test -f &#x22;$file&#x22;; then         echo [$file]         echo &#x27;=&#x26;gt;&#x27; $prompt         aplay -q $file &#x26;amp;         aplay=$!         echo -n &#x22;File $file exists, redo [yN]? &#x22;         read a         kill $aplay 2&#x26;gt;&#x26;amp;1         if [ &#x22;a$a&#x22; != ay ]; then continue; fi     fi     while true; do         echo [$file]         echo &#x27;=&#x26;gt;&#x27; $prompt         arecord -q -f dat $file         aplay -q $file &#x26;amp;         aplay=$!         echo -n &#x27;next, redo or quit [Nrq]? &#x27;         read a         kill $aplay 2&#x26;gt;&#x26;amp;1         if [ &#x22;a$a&#x22; = aq ]; then exit; fi         if [ &#x22;a$a&#x22; = ar ]; then continue; fi         break     done done 3&#x26;lt; $prompts </description>
<guid isPermaLink="true">http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/how-to/data-prep/step-3/comments/recording-script</guid>
<pubDate>Sun, 18 May 2008 18:20:57 -0500</pubDate>
</item>

</channel>
</rss>
