alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.49k stars 1.05k forks source link

RoboVM support for IOS and Android ? #475

Open eix128 opened 3 years ago

eix128 commented 3 years ago

Hi , i am using Libgdx library. I want to use vosk-api on android and IOS with RoboVM support. RoboVM doesnt support JNI but it has Bro support. With help of javacpp , we can use it. Is there any support for RoboVM IOS ?

nshmyrev commented 3 years ago

We are currently moving the code from JNI to JNA, you can check in java for example:

https://github.com/alphacep/vosk-api/tree/master/java/lib

hopefully that will make your life easier. You will have to implement RoboVM wrappers yourself though.

About iOS I'm not sure, it should probably work too.

eix128 commented 3 years ago

Why JNA ? JavaCPP is far better and with JavaCPP code works on IOS RoboVM too. And very high performance more then JNA. You can check out details

https://github.com/bytedeco/javacpp

nshmyrev commented 3 years ago

Somehow we decided to go with jna. You are welcome to help with robovm bindings, it should be pretty straightforward, the interface is just few methods.