Commit e8c2dae4 authored by Bagher BabaAli's avatar Bagher BabaAli
Browse files

added ffv feature extraction to babel/s5/run-1-main.sh

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@2806 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 30504dae
......@@ -126,16 +126,35 @@ fi
echo ---------------------------------------------------------------------
echo "Starting plp feature extraction for data/train in plp on" `date`
echo ---------------------------------------------------------------------
use_pitch=false
use_ffv=false
if [ ! -f data/train/.plp.done ]; then
if ! "$use_pitch"; then
steps/make_plp.sh --cmd "$train_cmd" --nj $decode_nj data/train exp/make_plp/train plp
else
if [ "$use_pitch" = "false" ] && [ "$use_ffv" = "false" ]; then
steps/make_plp.sh --cmd "$train_cmd" --nj $decode_nj data/train exp/make_plp/train plp
elif [ "$use_pitch" = "true" ] && [ "$use_ffv" = "true" ]; then
cp -rT data/train data/train_plp; cp -rT data/train data/train_pitch; cp -rT data/train data/train_ffv
steps/make_plp.sh --cmd "$train_cmd" --nj $decode_nj data/train_plp exp/make_plp/train plp_tmp_train
local/make_pitch.sh --cmd "$train_cmd" --nj $decode_nj data/train_pitch exp/make_pitch/train pitch_tmp_train
local/make_ffv.sh --cmd "$train_cmd" --nj $decode_nj data/train_ffv exp/make_ffv/train ffv_tmp_train
steps/append_feats.sh --cmd "$train_cmd" --nj $decode_nj data/train{_plp,_pitch,_plp_pitch} exp/make_pitch/append_train_pitch plp_tmp_train
steps/append_feats.sh --cmd "$train_cmd" --nj $decode_nj data/train{_plp_pitch,_ffv,} exp/make_ffv/append_train_pitch_ffv plp
rm -rf {plp,pitch,ffv}_tmp_train data/train_{plp,pitch,plp_pitch}
elif [ "$use_pitch" = "true" ]; then
cp -rT data/train data/train_plp; cp -rT data/train data/train_pitch
steps/make_plp.sh --cmd "$train_cmd" --nj $decode_nj data/train_plp exp/make_plp/train plp_tmp_train
local/make_pitch.sh --cmd "$train_cmd" --nj $decode_nj data/train_pitch exp/make_pitch/train plp_tmp_train
local/make_pitch.sh --cmd "$train_cmd" --nj $decode_nj data/train_pitch exp/make_pitch/train pitch_tmp_train
steps/append_feats.sh --cmd "$train_cmd" --nj $decode_nj data/train{_plp,_pitch,} exp/make_pitch/append_train plp
rm -rf plp_tmp_train data/train_{plp,pitch}
rm -rf {plp,pitch}_tmp_train data/train_{plp,pitch}
elif [ "$use_ffv" = "true" ]; then
cp -rT data/train data/train_plp; cp -rT data/train data/train_ffv
steps/make_plp.sh --cmd "$train_cmd" --nj $decode_nj data/train_plp exp/make_plp/train plp_tmp_train
local/make_ffv.sh --cmd "$train_cmd" --nj $decode_nj data/train_ffv exp/make_ffv/train ffv_tmp_train
steps/append_feats.sh --cmd "$train_cmd" --nj $decode_nj data/train{_plp,_ffv,} exp/make_ffv/append_train plp
rm -rf {plp,ffv}_tmp_train data/train_{plp,ffv}
fi
steps/compute_cmvn_stats.sh \
data/train exp/make_plp/train plp
# In case plp or pitch extraction failed on some utterances, delist them
......
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