Sphinx-UE4: Speech Recognition Plugin [Release v1.0]

Is there a way to fix the issue with andriod build.
@ShaneC is there a way i can add the path to com.sphinxue4.SpeechRecognitionWorker in xml ? this fails when i change the andriod version and ndk version. i was able to build this earlier but it failed because it can’t find the path.

ndroid (ASTC)): > Task :app:processDebugResources
UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:generateDebugBuildConfig UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:javaPreCompileDebug UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:compileDebugJavaWithJavac UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:bundleLibCompileToJarDebug UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :permission_library:generateDebugBuildConfig UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :permission_library:javaPreCompileDebug UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :permission_library:compileDebugJavaWithJavac UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :permission_library:bundleLibCompileToJarDebug UP-TO-DATE
UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugJavaWithJavac FAILED
UATHelper: Packaging (Android (ASTC)): The following annotation processors are not incremental: lifecycle-compiler-2.0.0.jar (androidx.lifecycle:lifecycle-compiler:2.0.0).
UATHelper: Packaging (Android (ASTC)): Make sure all annotation processors are incremental to improve your build speed.
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:253: error: package com.sphinxue4 does not exist
UATHelper: Packaging (Android (ASTC)):       import com.sphinxue4.SpeechRecognitionWorker;
UATHelper: Packaging (Android (ASTC)):                           ^
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:678: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)):       private static SpeechRecognitionWorker worker;
UATHelper: Packaging (Android (ASTC)):                      ^
UATHelper: Packaging (Android (ASTC)):   symbol:   class SpeechRecognitionWorker
UATHelper: Packaging (Android (ASTC)):   location: class GameActivity
UATHelper: Packaging (Android (ASTC)): 2 errors
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Execution failed for task ':app:compileDebugJavaWithJavac'.
UATHelper: Packaging (Android (ASTC)): > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 23s
UATHelper: Packaging (Android (ASTC)): 32 actionable tasks: 5 executed, 27 up-to-date
UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c "D:\PlasticProjects\SpeechRecognition\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
UATHelper: Packaging (Android (ASTC)):        (see C:\Users\sssha\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error

also configure this

Hello,

First, thank you for your work.
I also have a question about this plugin. I follow your instruction but it’s still doesn’t work for me

I retrrieved the model folder (from the sample project) and put it in the content folder.

I’m still missing something I think :slight_smile:

Is there any prerequisite that is needed (dev tool or so )?

Thank you

I notice it was asked above but not sure if anyone has an answer for it. I am also trying to use this with the VOIP features but it just wont. Is there something beyond the scope of this tutorial I am missing?

Hello I guess you got too busy back then to come back, but I would still really appreciate the help. I want to have a simple voice recognition Turbolift in my Enterprise D… I would really appreciate if you could help me find a copy of the Pocket Sphinx Demo Scene (with the soccer game) that would run in 4…27 (and maybe the Android to since that would be a cool thing!) I have tried for many many years to get this to work and still I trty ,. Please.! I will share my extensive tool and assets!! :slight_smile: Thank you.

Hey @ShaneC , i don’t even know If you still have access to your account or not since its been forever lol.

I just wanted to first of all thank you for this plugin and I wanted to inform you that I needed your plugin for a big university project as a final capstone one and fortunately I have managed to make a modernization of it and a scalable adaptation to the UE5 version.

I have sent you a friend request on epic games.

I just want to show u my approach and a possibility to add my solution to the github main code it will benefit my academic achievement and any user who wants to use your life-saving plugin for the newer versions.

Hopefully you are still on the platform and I’m waiting for your reply to discuss further details in private before releasing it to the public.