alumae / gst-kaldi-nnet2-online

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

can i plugin this library with java gstreamer #17

Closed badboys4life007 closed 9 years ago

badboys4life007 commented 9 years ago

Hello,

i used your python code as reference and code in java using gstreamer-java-1.6.jar and jna-4.1.0.jar but there it cannot load kaldi gstreamer library and says error as No such Gstreamer factory: kaldinnet2onlinedecoder

i even set the library path but does this library would load using gstreamer-java-1.6.jar.

Please suggest me what to do, it will be very helpful to me.

alumae commented 9 years ago

It should work with Java although I haven't really tried.

The error message seems to indicate that GStreamer doesn't find the library that contains kaldinnet2onlinedecoder. Have you set the GST_PLUGIN_PATH environment variable to point to the directory that contains the plugin? E.g., can you run GST_PLUGIN_PATH=/home/foo/gst-kaldi-nnet2-online/src gst-inspect-1.0 kaldinnet2onlinedecoder from the same directory where you execute you Java program?

badboys4life007 commented 9 years ago

yes i tried all the possibilities and after all finally, i come to know that GStreamer Java has only supporting version of GStreamer 0.10 (here is refer url https://code.google.com/p/gstreamer-java/) and it has no supported version for GStreamer 1.0 or above in java.

and i think we cant compile kaldi code with GStreamer 0.10 as i even tried to do it even but failed.

On 15 May 2015 at 12:19, Tanel Alumäe notifications@github.com wrote:

It should work with Java although I haven't really tried.

The error message seems to indicate that GStreamer doesn't find the library that contains kaldinnet2onlinedecoder. Have you set the GST_PLUGIN_PATH environment variable to point to the directory that contains the plugin? E.g., can you run GST_PLUGIN_PATH=/home/foo/gst-kaldi-nnet2-online/src gst-inspect-1.0 kaldinnet2onlinedecoder from the same directory where you execute you Java program?

— Reply to this email directly or view it on GitHub https://github.com/alumae/gst-kaldi-nnet2-online/issues/17#issuecomment-102287619 .

alumae commented 9 years ago

Yes, the plugin doesn't support GStreamer 0.10, sorry.

badboys4life007 commented 9 years ago

okey thanks for the response. so i suppose to work with python wrapper for GUI..

thanks, your effort saved my time..

On 15 May 2015 at 13:30, Tanel Alumäe notifications@github.com wrote:

Yes, the plugin doesn't support GStreamer 0.10, sorry.

— Reply to this email directly or view it on GitHub https://github.com/alumae/gst-kaldi-nnet2-online/issues/17#issuecomment-102306501 .

gilamsalem commented 5 years ago

I just found this thread while searching for a Java kaldi gstreamer plugin. Anyway, in case it is relevant to someone, I am using org.freedesktop.gstreamer package, and it works fine with the gst-kaldi-nnet2-online plugin.

alumae commented 5 years ago

Cool, thanks for letting us know.

justinphan3110 commented 4 years ago

Hi @gilamsalem, thanks for the update. Can you share the code implementing org.freedesktop.gstreamer package with the gst-kaldi-nnet2-online plugin also?

gilamsalem commented 4 years ago

Hi @justinphan3110 I haven't touched it for a long long time... I attached the files I found, hope it is still working: gstreamerjava.zip

gilamsalem commented 4 years ago

I think that the relevant gstreamer version is: `

org.freedesktop.gstreamer gst1-java-core 0.9.4

`

justinphan3110 commented 4 years ago

@gilamsalem thank you for the sharing! Your code would great to be one of a example for the gst1-java-examples also

gilamsalem commented 4 years ago

@justinphan3110 Cool. I will follow. Ping me if I can help more...