#!/bin/csh
#############################################################################
#
# Test fuzzy SNR mask Missing Data ASR on Aurora Test Set A data
#
# Requires the environment variablea $CTKROOT & $CTK_AURORAROOT to be set.
#
#   syntax: test_fuzzy_snr_md_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_fuzzy_snr_md_asr 1 clean
#     to test noise type 3 with at 10dB SNR
#        test_fuzzy_snr_md_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 fuzzy_snr_md_asr.ctk  $CTK_AURORAROOT/models/models.rate32_d.GI.7mix -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.
#
