sherpa-onnx
sherpa-onnx copied to clipboard
Is org.k2fsa.sherpa.onnx v1.10.17 supporting Android Xamarin?
Hi there!
I'm trying to embed sherpa in an android application using c# xamarin. org.k2fsa.sherpa.onnx v1.10.17 package works well on windows and linux. On Android there is a problem with creating OnlineRecognizer. While importing libsherpa-onnx-c-api.so I am getting DllNotFoundException. Using dlimport and dlerror, I found out that the error was in importing the transitive dependency libpthread.so.0. As far as I know there is no libpthread.so.0 in android, hence this libsherpa-onnx-c-api.so is not android oriented. dlerror output - "dlopen failed: library "libpthread.so.0" not found: needed by /data/app/~~roWPFky3a7zFKDoAAw0VVA==/Dictation.Client-m1pLIjGpo753L8FT3uZF5Q==/lib/x86_64/libsherpa-onnx-c-api .so in namespace clns-6" I tried to write a minimal application in flutter - it works. I took libsherpa-onnx-c-api.so from this build and linked it to my project, but it didn't work. Will org.k2fsa.sherpa.onnx package support xamarin in the future? Can you give instructions on how to link the required libsherpa-onnx-c-api.so assembly when building the nuget-package for xamarin from sources?