alumae / gst-kaldi-nnet2-online

GStreamer plugin around Kaldi's online neural network decoder
Apache License 2.0
185 stars 100 forks source link

Detecting silence #95

Open maczikasz opened 4 years ago

maczikasz commented 4 years ago

Hi,

I was wondering what's the correct way of detecting that a pipeline has not emitted any events via callbacks because there is no speech in a given audio file, or because there is something wrong with the pipeline.

At the moment i just rely on a timeout mechanism to track transcriptions emitted from the gst plugin and if there is nothing fot X second I assume it's an empty file, but also I shutdown the gst pipeline, because I do not know if it's still usable.

Do you have any suggestion?