-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrunYunitator.sh
executable file
·39 lines (27 loc) · 952 Bytes
/
runYunitator.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
#!/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: runYunitator.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 $dirname/Yunitemp/
# first features
./extract-htk-vm2.sh $1
# then confidences
python diarize.py $dirname/Yunitemp/$basename.htk $dirname/Yunitemp/$basename.rttm