#!/bin/csh
#############################################################################
#
# Test Traditional ASR on Aurora Test Set A data
#
# Requires the environment variablea $CTKROOT & $CTKWORK to be set.
#
#   syntax: test_trad_asr NOISETYPE SNR
#
#   NOISETYPE can be 1, 2, 3, or 4 - i.e. the 4 Aurora test set A noises
#   SNR can be,  -5, 0, 5, 10, 15, 20,  or  clean
#
#  e.g to set noise type 1 utterances on the clean data set:
#        test_trad_asr 1 clean
#     to test noise type 3 with at 10dB SNR
#        test_trad_asr 3 10
#
#############################################################################

setenv NOISETYPE $1
setenv SNR $2

if ($SNR == "clean") then
    setenv SETNAME $SNR$NOISETYPE
else
    setenv SETNAME N$NOISETYPE\_SNR$SNR
endif

# Set the INDATA_PATH which is required by the CTK script

setenv INDATA_PATH $CTK_AURORAROOT/data/rate32_d/testa/$SETNAME


# Run the CTK script using Aurora 3 mixture models
#

$CTKROOT/bin/CTKScript trad_asr.ctk $CTK_AURORAROOT/models/models.rate32_d.GI.3mix -S $CTK_AURORAROOT/flists/$NOISETYPE.flist -S $CTK_AURORAROOT/transcriptions/$NOISETYPE.trans ""

# Results are sent to stdout, and can be redirected to a file.
# To send results directly to a file replace "" with a file name.
#

