alumae / gst-kaldi-nnet2-online

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

Gstreamer Plugin test: how to recognize success/fail? #10

Closed riebling closed 9 years ago

riebling commented 9 years ago

It would be helpful to specify what results should look like after following these instructions:

Test if GStreamer can access the plugin:

GST_PLUGIN_PATH=. gst-inspect-1.0 kaldinnet2onlinedecoder

On my system, I get tons of output indicating this did NOT work, and had to look up the Kaldi documentation for an example of what a successful output of gst-inspect SHOULD look like:

# gst-inspect-1.0 onlinegmmdecodefaster
Factory Details:
  Rank:     none (0)
  Long-name:        OnlineGmmDecodeFaster
  Klass:            Speech/Audio
  Description:      Convert speech to text
  Author:           Tanel Alumae <tanel.alumae@phon.ioc.ee>
[..]
Element Properties:
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "onlinegmmdecodefaster0"
  parent              : The parent of the object
                        flags: readable, writable
                        Object of type "GstObject"
  silent              : Determines whether incoming audio is sent to the decoder or not
                        flags: readable, writable
                        Boolean. Default: false
  model               : Filename of the acoustic model
                        flags: readable, writable
                        String. Default: "final.mdl"
  fst                 : Filename of the HCLG FST
                        flags: readable, writable
                        String. Default: "HCLG.fst"
[..]
  min-cmn-window      : Minumum CMN window used at start of decoding (adds latency only at     start)
                    flags: readable, writable
                    Integer. Range: -2147483648 - 2147483647 Default: 100 

Element Signals:
  "hyp-word" :  void user_function (GstElement* object,
                                    gchararray arg0,
                                    gpointer user_data);
riebling commented 9 years ago

Here is the error when I try gst-inspect, if it provides any clues (and sorry to be so clueless, a first time use of GStreamer, so I can't be very clever in figuring out commonly known issues)

er1k@islpc22:~/gst-kaldi-nnet2-online/src$ gst-inspect-1.0 kaldinnet2onlinedecoder

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_param_spec_float: assertion `default_value >= minimum && default_value <= maximum' failed

(gst-inspect-1.0:7872): GLib-GObject-CRITICAL **: g_object_class_install_property: assertion `G_IS_PARAM_SPEC (pspec)' failed

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property nameddelta'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedmax-mem'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedphone-determinize'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedword-determinize'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedminimize'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedbeam'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedmax-active'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedmin-active'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedlattice-beam'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedprune-interval'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property nameddeterminize-lattice'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedbeam-delta'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedhash-ratio'

(gst-inspect-1.0:7872): GLib-GObject-WARNING **: When installing property: type Gstkaldinnet2onlinedecoder' already has a property namedacoustic-scale'