Hello Unreal Developers,
I am currently in the process of porting across a speech recognition plugin.
This port is somewhat working, but I wonder if there is a better way in which it can be called.
I have edited GameActivity.java/AndroidJNI.cpp/AndroidJNI.h, adding in custom methods to allow me to instantiate and reference my custom code.
Ideally, I would like to have people be able to build and use my plugin with a basic installed version of Unreal Engine 4, rather than downloading the source + editing the source code.
What is the optimal way to go about this? I am sure others must have had this question. I would certainly appreciate any help.
Additionally, if someone can provide an example showing how C++ code can be triggered from Java, that would be great.
At the moment, my solution is a terrible polling system, where I am essentially calling Java methods every 10ms, to see if a word has been spoken.
It’d be preferable to trigger a method from the Java code, when words/phrases were detected.
Granted, i`m sure the overhead for a simple check like that is minimal, in this particular case.