DeepSpeech icon indicating copy to clipboard operation
DeepSpeech copied to clipboard

Standalone Java bindings

Open TobiasDeBruijn opened this issue 4 years ago • 6 comments

Solves #3502

  • Added standalone Java bindings, that do not rely on Android
  • Script to produce and collect all required files for usage in the end users own projects
  • Instructions on how to use and example on how to use

TobiasDeBruijn avatar Jan 18 '21 17:01 TobiasDeBruijn

Let me finish my sport, i might have a better idea than gradle composition

lissyx avatar Jan 19 '21 10:01 lissyx

Hi TheDutchMC, I face an issue after make standalone. The file tensorflow/bazel-out/x86_64-*/bin/native_client/libdeepspeech.so is not found.

Liuhaai avatar Mar 25 '21 00:03 Liuhaai

Hi TheDutchMC, I face an issue after make standalone. The file tensorflow/bazel-out/x86_64-*/bin/native_client/libdeepspeech.so is not found.

Hey there, have you built DeepSpeech before trying to create the java bindings? See the documentation here

TobiasDeBruijn avatar Mar 25 '21 08:03 TobiasDeBruijn

Hi TheDutchMC, I face an issue after make standalone. The file tensorflow/bazel-out/x86_64-*/bin/native_client/libdeepspeech.so is not found.

Hey there, have you built DeepSpeech before trying to create the java bindings? See the documentation here

Except for compiling DeepSpeech, which platform should be built? If you could upload libdeepspeech.jar and *.so files, it would be convenient to test the Java bindings.

Liuhaai avatar Mar 25 '21 21:03 Liuhaai

For now only x86-64 (linux I believe) works, though you could easily modify the Makefile for your platform. This is a WIP.

Keep in mind the code for the standalone jdk is probably going to change a bit, I dont like the way library loading is done at the moment.

I should have some time to look at it again tomorrow afternoon and Saturday.

TobiasDeBruijn avatar Mar 25 '21 21:03 TobiasDeBruijn

For now only x86-64 (linux I believe) works, though you could easily modify the Makefile for your platform. This is a WIP.

Keep in mind the code for the standalone jdk is probably going to change a bit, I dont like the way library loading is done at the moment.

I should have some time to look at it again tomorrow afternoon and Saturday.

Thanks for your work!

Liuhaai avatar Mar 25 '21 21:03 Liuhaai