Commit 72cb4d3d authored by Bagher BabaAli's avatar Bagher BabaAli
Browse files

added ffv feature extraction to babel/s5/run-4-test.sh

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@2807 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent e8c2dae4
......@@ -36,14 +36,31 @@ fi
function make_plp {
t=$1
if ! "$use_pitch"; then
steps/make_plp.sh --cmd "$decode_cmd" --nj $my_nj data/${t} exp/make_plp/${t} plp
else
use_pitch=false
use_ffv=false
if [ "$use_pitch" = "false" ] && [ "$use_ffv" = "false" ]; then
steps/make_plp.sh --cmd "$decode_cmd" --nj $my_nj data/${t} exp/make_plp/${t} plp
elif [ "$use_pitch" = "true" ] && [ "$use_ffv" = "true" ]; then
cp -rT data/${t} data/${t}_plp; cp -rT data/${t} data/${t}_pitch; cp -rT data/${t} data/${t}_ffv
steps/make_plp.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_plp exp/make_plp/${t} plp_tmp_${t}
local/make_pitch.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_pitch exp/make_pitch/${t} pitch_tmp_${t}
local/make_ffv.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_ffv exp/make_ffv/${t} ffv_tmp_${t}
steps/append_feats.sh --cmd "$decode_cmd" --nj $my_nj data/${t}{_plp,_pitch,_plp_pitch} exp/make_pitch/append_${t}_pitch plp_tmp_${t}
steps/append_feats.sh --cmd "$decode_cmd" --nj $my_nj data/${t}{_plp_pitch,_ffv,} exp/make_ffv/append_${t}_pitch_ffv plp
rm -rf {plp,pitch,ffv}_tmp_${t} data/${t}_{plp,pitch,plp_pitch}
elif [ "$use_pitch" = "true" ]; then
cp -rT data/${t} data/${t}_plp; cp -rT data/${t} data/${t}_pitch
steps/make_plp.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_plp exp/make_plp/${t} plp_tmp_${t}
local/make_pitch.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_pitch exp/make_pitch/${t} plp_tmp_${t}
local/make_pitch.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_pitch exp/make_pitch/${t} pitch_tmp_${t}
steps/append_feats.sh --cmd "$decode_cmd" --nj $my_nj data/${t}{_plp,_pitch,} exp/make_pitch/append_${t} plp
rm -rf plp_tmp_${t} data/${t}_{plp,pitch}
rm -rf {plp,pitch}_tmp_${t} data/${t}_{plp,pitch}
elif [ "$use_ffv" = "true" ]; then
cp -rT data/${t} data/${t}_plp; cp -rT data/${t} data/${t}_ffv
steps/make_plp.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_plp exp/make_plp/${t} plp_tmp_${t}
local/make_ffv.sh --cmd "$decode_cmd" --nj $my_nj data/${t}_ffv exp/make_ffv/${t} ffv_tmp_${t}
steps/append_feats.sh --cmd "$decode_cmd" --nj $my_nj data/${t}{_plp,_ffv,} exp/make_ffv/append_${t} plp
rm -rf {plp,ffv}_tmp_${t} data/${t}_{plp,ffv}
fi
steps/compute_cmvn_stats.sh data/${t} exp/make_plp/${t} plp
utils/fix_data_dir.sh data/${t}
......
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