-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunscript_test.sh
43 lines (32 loc) · 1.07 KB
/
runscript_test.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
41
42
#!/bin/bash
session_id=$1
echo "Session Script Starting for: $session_id"
echo "Start - .webm Header Correction"
for file in Data/$session_id*.webm;
do ffmpeg -i "$file" -c:v libvpx-vp9 -crf 10 Data/testFixed1_$(basename "${file/.webm}").webm
done
echo "Finish - .webm Header Correction"
echo "Start - .wav Conversion"
for file in Data/testFixed1_$session_id*.webm;
do ffmpeg -i "$file" -ar 11025 Data/$(basename "${file/.webm}").wav
done
echo "Finish - .wav Conversion"
echo "Start - Praat"
for file in Data/testFixed1_$session_id*.wav;
do ./praat --run auto.praat $file
done
echo "Finish - Praat"
echo "Start - Participation Analysis"
argpath=""
for i in Data/testFixed1_$session_id*.wav.TextGrid;
do argpath="$argpath $i"
done
#python fileparser.py $argpath
#echo "Finish - Participation Analysis"
#echo "Start - average affdex features"
#python AffdexParser.py $session_id
#echo "Finish - average affdex features"
#echo "Start - shared affdex features"
#python SharedAffdexDetection.py $session_id
#echo "Finish - shared affdex features"
echo "Session Script Terminated..."