-
Notifications
You must be signed in to change notification settings - Fork 3
/
runDiarNoisemes.sh
executable file
·41 lines (30 loc) · 1011 Bytes
/
runDiarNoisemes.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
34
35
36
37
38
39
40
#!/bin/bash
# runDiarNoisemes.sh
# run OpenSAT with hard coded models & configs found here and in /vagrant
# assumes Python environment in /home/${user}/
# usage: runDiarNoisemes.sh <folder containing .wav files to process>
# 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
# make output folder for features, below input folder
mkdir -p $1/feature
# first features
for file in `ls $1/*.wav`; do
SSSF/code/feature/extract-htk-vm2.sh $file
done
# then confidences
#python SSSF/code/predict/1-confidence-vm3.py $1
python SSSF/code/predict/1-confidence-vm4.py $1