How can I implement voice recognition in JAVA mode?

@glv

I solved it through Android.

However, I’m not sure how to implement it via Java.

If you know the reference link,
I would appreciate it if you share it.

Thank you for your interest.