-
Notifications
You must be signed in to change notification settings - Fork 3
/
runOpenSAT.sh
executable file
·35 lines (24 loc) · 950 Bytes
/
runOpenSAT.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# run OpenSAT with hard coded models & configs found here and in /vagrant
# assumes Python environment in /home/${user}/
# Absolute path to this script. /home/user/bin/foo.sh
SCRIPT=$(readlink -f $0)
# Absolute path this script is in. /home/user/bin
BASEDIR=`dirname $SCRIPT`
filename=$(basename "$1")
dirname=$(dirname "$1")
extension="${filename##*.}"
basename="${filename%.*}"
# this is set in user's login .bashrc
#export PATH=/home/${user}/anaconda/bin:$PATH
if [ $# -ne 1 ]; then
echo "Usage: runOpenSAT.sh <audiofile>"
exit 1;
fi
# let's get our bearings: set CWD to path of this script
cd $BASEDIR
# first features
SSSF/code/feature/extract-htk-vm.sh $1
# then confidences
#/home/vagrant/anaconda/bin/python SSSF/code/predict/1-confidence-vm.py $BASEDIR/SSSF/data/feature/evl.med.htk/$basename.htk $basename
python SSSF/code/predict/1-confidence-vm.py $BASEDIR/SSSF/data/feature/evl.med.htk/$basename.htk $basename