alumae / kaldi-gstreamer-server

Real-time full-duplex speech recognition server, based on the Kaldi toolkit and the GStreamer framwork.
BSD 2-Clause "Simplified" License
1.07k stars 341 forks source link

Change kaldi gstreamer plugin properties #152

Open grwgreg opened 6 years ago

grwgreg commented 6 years ago

Is it possible to alter the properties of the kaldinnet2onlinedecoder gstreamer element while it is in the pipeline? I'm trying to alter the server so I can send a request to change which FST, model etc are being used. The following causes a segfault,

#in decoder2.py
self.asr.set_state(Gst.State.PAUSED)
self.asr.set_property('fst', 'models/other/HCLG.fst')
#changing all the properties here
self.asr.set_state(Gst.State.PLAYING)

I was able to get something working by creating an entirely new decoder but I'd rather do it this way if possible.

Thanks

dimastro commented 4 years ago

I was trying the same thing. It's not possible to change the fst, but I'm able to change the model. Αny solution about that?