Skip to content
Snippets Groups Projects
Commit 80c307b7 authored by tanel's avatar tanel
Browse files

Not generating lattice if less than 0.1 seconds were processed

parent 1f5faf4a
No related branches found
No related tags found
No related merge requests found
......@@ -588,6 +588,7 @@ static void gst_kaldinnet2onlinedecoder_loop(
last_traceback += traceback_period_secs;
}
}
if (num_seconds_decoded > 0.1) {
GST_DEBUG_OBJECT(filter, "Getting lattice..");
CompactLattice clat;
bool end_of_utterance = true;
......@@ -605,6 +606,9 @@ static void gst_kaldinnet2onlinedecoder_loop(
// we felt the utterance had low confidence.
feature_pipeline.GetAdaptationState(&adaptation_state);
}
} else {
GST_DEBUG_OBJECT(filter, "Less than 0.1 seconds decoded, discarding");
}
}
// We should also push out adaptation state now, something like this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment