From 41e66f8babab7722617d36e28104708113d254bb Mon Sep 17 00:00:00 2001 From: Joseph Keshet Date: Wed, 29 Jun 2016 19:28:06 -0400 Subject: [PATCH] Predict using bash script --- formants.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 formants.sh diff --git a/formants.sh b/formants.sh new file mode 100755 index 0000000..885c834 --- /dev/null +++ b/formants.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ $# -eq 2 ] +then + tempfile=`mktemp -t txt` + python extract_features.py $1 $tempfile + th load_estimation_model.lua $tempfile $2 +elif [ $# -eq 4 ] +then + tempfile=`mktemp -t txt` + python extract_features.py $1 $tempfile --begin $3 --end $4 + th load_estimation_model.lua $tempfile $2 +else + echo "$0 wav_filename pred_csv_filename [begin_time end_time]" +fi