Commit 296570b5 authored by Abdelwahab HEBA's avatar Abdelwahab HEBA
Browse files

simple call for prep database

parent 9183e001
......@@ -50,7 +50,7 @@ for trs_file in $(find $src -type f -name "*.trs" | sort); do
#echo $meeting_dir
#echo $dst
#python3 local/parse_AudioDB.py --data-prep --input-dir $meeting_dir --output-dir $dst >> log.txt 2>&1
echo "python3 local/parseTcofSync.py $trs_file $dst >> log.txt 2>&1"
python3 local/parseESTERSync.py $trs_file $dst >> log.txt 2>&1
done
# Sort all files
......
......@@ -43,14 +43,14 @@ utt2dur=$dst/utt2dur; [[ -f "$utt2dur" ]] && rm $utt2dur
segments=$dst/segments; [[ -f "$segments" ]] && rm $segments
# For each meeting
for meeting_dir in $(find $src -mindepth 1 -maxdepth 1 -type d | sort); do
for meeting_dir in $(find $src -mindepth 1 -maxdepth 1 -type f | grep "*.trs" | sort); do
meeting=$(basename $meeting_dir)
[ ! -f $meeting_dir/$meeting.trs ] && [ ! -f $meeting_dir/$meeting.wav ] && echo " Missing $meeting.trs or $meeting.wav file " #&& exit 1
#[ ! -f $meeting_dir/$meeting.trs ] && [ ! -f $meeting_dir/$meeting.wav ] && echo " Missing $meeting.trs or $meeting.wav file " #&& exit 1
# Generate Kaldi input file
#echo $meeting_dir
#echo $dst
#python3 local/parse_AudioDB.py --data-prep --input-dir $meeting_dir --output-dir $dst >> log.txt 2>&1
python3 local/parseTcofSync.py $meeting_dir/$meeting.trs $dst >> log.txt 2>&1
python3 local/parseTcofSync.py $meeting_dir $dst >> log.txt 2>&1
done
# Sort all files
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment