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

adding extra parameters #27

Closed rohithkodali closed 8 years ago

rohithkodali commented 9 years ago

Hi Tanel,

Is there anyway that we can send some extra parameters using curl ex: using a particular language model for some specific speakers etc based on some speaker ID and language model name sent to server.

alumae commented 9 years ago

Such functionality is not implemented. But it shouldn't be too difficult to add this: the nnet2-based GStreamer plugin allows changing the HCLG.fst on the fly, you just have to hack some python in worker.py and decoder2.py.

I'm afraid it will be very application specific, so I don't really want to add this to the main branch (unless of course you propose a very elegant solution).

rohithkodali commented 9 years ago

Is the hclg.fst changing on the fly is added anywhere ? On 21 Sep 2015 21:52, "Tanel Alumäe" notifications@github.com wrote:

Such functionality is not implemented. But it shouldn't be too difficult to add this: the nnet2-based GStreamer plugin allows changing the HCLG.fst on the fly, you just have to hack some python in worker.py and decoder2.py.

I'm afraid it will be very application specific, so I don't really want to add this to the main branch (unless of course you propose a very elegant solution).

— Reply to this email directly or view it on GitHub https://github.com/alumae/kaldi-gstreamer-server/issues/27#issuecomment-142033043 .

alumae commented 9 years ago

I don't understand your question.

rohithkodali commented 9 years ago

In previous mail you mentioned that gstreamer allows to change hclg.fst on the fly

My question is that is these feature implemented anywhere in code On 21 Sep 2015 22:31, "Tanel Alumäe" notifications@github.com wrote:

I don't understand your question.

— Reply to this email directly or view it on GitHub https://github.com/alumae/kaldi-gstreamer-server/issues/27#issuecomment-142043228 .

alumae commented 9 years ago

The nnet2 GStreamer plugin has a 'fst' property that is currently set once via the conf file. However, you could change this property via python between individual requests. If you are asking whether there is a sample available on how to do this, then no, I don't think so.