Originally Posted by
zoubidoo
Lucid LTS + Virtualbox + WinXP + Ivona trial version works perfectly. Just make sure you give the VM plenty of disk space.
I'd be uncomfortable paying for it as it needs virtualbox and windows. But if it could be installed thought the ubuntu software centre, I wouldn't hesitate for a moment.
Not bad. I have found this script. It works for me for few words.
Code:
#!/bin/sh
ProcFestival() {
if [ "$1" = "--festival" ] ; then
echo "$2" | festival --tts
fi
}
ProcIncreaseMic() {
amixer -q -c $VALMIC set 'Mic',1 100%
amixer -q -c $VALMIC set 'Mic',0 100%
}
ProcMic() {
if [ "$1" = "--checkmic" ] || [ "$1" = "--mic" ] || [ "$1" = "--hwmic" ] ; then
CARDNBR=` arecord -l | grep "^card " | sed 's/://g' | awk ' { print $2 } ' `
[ "$2" = "--debug" ] && echo "$CARDNBR"
if [ "$1" = "--mic" ] || [ "$1" = "--checkmic" ] ; then
[ "$2" != "" ] && CHMIC=` echo "$CARDNBR" | grep $2 `
if [ "$CHMIC" = "" ] ; then
VALMIC=` echo "$CARDNBR" | tail -n 1 `
ProcIncreaseMic
echo "$VALMIC"
else
VALMIC="$2"
ProcIncreaseMic
echo "$VALMIC"
fi
fi
fi
}
if [ "$1" = "custom" ] ; then
mkdir -p $HOME/tmp/custom
wget http://pastebin.ca/raw/2199967 -O $HOME/tmp/custom/sample.dfa
wget http://pastebin.ca/raw/2199968 -O $HOME/tmp/custom/sample.dict
wget http://pastebin.ca/raw/2199969 -O $HOME/tmp/julian-custom.jconf
echo "Custom fetched and done"
exit
fi
if [ "$1" = "install" ] ; then
mkdir -p $HOME/tmp/
cd $HOME/tmp
if [ ! -f Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz ] ; then
wget http://www.repository.voxforge1.org/downloads/Nightly_Builds/AcousticModel-2011-07-21/Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz -O Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz
fi
tar xvpfz Julius-3.5.2-Quickstart-Linux_AcousticModel-2011-07-21.tgz
echo "It might be installed."
exit
fi
if [ "$1" = "voc" ] ; then
cd
cd tmp
cd bin
vim sample.voca
./mkdfa.pl sample
exit
fi
FETCHMIC=` ProcMic --mic "$2" `
echo "Fetchmic : $FETCHMIC"
AUDIODEV=` echo "/dev/dsp${FETCHMIC}" | awk ' {gsub("dsp0","dsp") ; print $0 } '`
export AUDIODEV ; echo $AUDIODEV
counter=1
cd
cd tmp
if [ ! -f julian-custom.jconf ] ; then
echo "custom/julian.jconf not found"
echo "Please run-it with custom or install"
exit
fi
./julian -demo -input mic -C julian-custom.jconf | while read -r i ; do
if [ $counter -eq 130 ] || [ $counter -eq 129 ] ; then
echo "** READY * Please Speak **"
fi
if [ $counter -ge 129 ] ; then
echo "**$counter** $i **"
CHPAS=` echo "$i" | grep "sentence1: <s>" `
echo "CHPAS $CHPAS"
if [ "$CHPAS" != "" ] ; then
echo "FOUND CHPAS $CHPAS"
FOUND=""
FOUND=`echo "$i" | awk ' { print $3 } '`
ProcFestival --festival "$FOUND"
if [ "$LAST" != "ZERO" ] && [ "$FOUND" = "ZERO" ] ; then
ProcFestival --festival "The Command is $FOUND"
# here add whatever you would like linux to do ...
[ "$LAST" = "ONE" ] && xterm &
[ "$LAST" = "TWO" ] && audacious &
[ "$LAST" = "THREE" ] && xclock &
[ "$LAST" = "NINE" ] && date | festival --tts &
# ...
fi
LAST="$FOUND"
fi
fi
counter=$(( $counter +1))
done
Bookmarks