shanecolb / sphinx-ue4

A speech recognition plugin for Unreal Engine 4. This is essentially a port of Pocketsphinx, to be used within an Unreal Engine project.
The Unlicense
151 stars 81 forks source link

edu.cmu.pocketsphinx static import only from classes and interfaces #24

Open ssshammi opened 2 years ago

ssshammi commented 2 years ago

Just this bug remain... Issue while packaging for andriod image

UATHelper: Packaging (Android (ASTC)): Daemon will be stopped at the end of the build stopping after processing UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 UATHelper: Packaging (Android (ASTC)): Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 UATHelper: Packaging (Android (ASTC)): > Task :app:preBuild UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :app:preDebugBuild UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:preBuild UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:preDebugBuild UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:compileDebugAidl NO-SOURCE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:preBuild UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:preDebugBuild UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:compileDebugAidl NO-SOURCE UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugAidl UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:packageDebugRenderscript NO-SOURCE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:packageDebugRenderscript NO-SOURCE UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugRenderscript NO-SOURCE UATHelper: Packaging (Android (ASTC)): > Task :app:generateDebugBuildConfig UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :app:javaPreCompileDebug UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :app:generateDebugResValues UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :app:generateDebugResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:compileDebugRenderscript NO-SOURCE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:generateDebugResValues UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:generateDebugResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:packageDebugResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:generateDebugResValues UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:compileDebugRenderscript NO-SOURCE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:generateDebugResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:packageDebugResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :app:extractDeepLinksDebug UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:extractDeepLinksDebug UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:processDebugManifest UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:extractDeepLinksDebug UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:processDebugManifest UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :app:processDebugManifest UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:compileDebugLibraryResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:parseDebugLocalResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :downloader_library:generateDebugRFile UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:compileDebugLibraryResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:parseDebugLocalResources UP-TO-DATE UATHelper: Packaging (Android (ASTC)): > Task :permission_library:generateDebugRFile UP-TO-DATE 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:mergeDebugResources UATHelper: Packaging (Android (ASTC)): aapt2.exe W 07-11 10:34:19 13388 5340 LoadedArsc.cpp:657] Unknown chunk type '200'. UATHelper: Packaging (Android (ASTC)): > Task :app:processDebugResources 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\sphinxue4\SpeechRecognitionWorker.java:4: error: package edu.cmu.pocketsphinx does not exist UATHelper: Packaging (Android (ASTC)): import static edu.cmu.pocketsphinx.SpeechRecognizerSetup.defaultSetup; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:4: error: static import only from classes and interfaces UATHelper: Packaging (Android (ASTC)): import static edu.cmu.pocketsphinx.SpeechRecognizerSetup.defaultSetup; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:5: error: package edu.cmu.pocketsphinx does not exist UATHelper: Packaging (Android (ASTC)): import static edu.cmu.pocketsphinx.Decoder.defaultConfig; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:5: error: static import only from classes and interfaces UATHelper: Packaging (Android (ASTC)): import static edu.cmu.pocketsphinx.Decoder.defaultConfig; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:6: error: package edu.cmu.pocketsphinx does not exist UATHelper: Packaging (Android (ASTC)): import static edu.cmu.pocketsphinx.Decoder.fileConfig; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:6: error: static import only from classes and interfaces UATHelper: Packaging (Android (ASTC)): import static edu.cmu.pocketsphinx.Decoder.fileConfig; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:41: error: package edu.cmu.pocketsphinx does not exist UATHelper: Packaging (Android (ASTC)): import edu.cmu.pocketsphinx.*; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:45: error: cannot find symbol UATHelper: Packaging (Android (ASTC)): public class SpeechRecognitionWorker implements Runnable, RecognitionListener { UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): symbol: class RecognitionListener UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:76: error: cannot find symbol UATHelper: Packaging (Android (ASTC)): private Config config; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): symbol: class Config UATHelper: Packaging (Android (ASTC)): location: class SpeechRecognitionWorker UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:77: error: cannot find symbol UATHelper: Packaging (Android (ASTC)): private SpeechRecognizer recognizer; UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): symbol: class SpeechRecognizer UATHelper: Packaging (Android (ASTC)): location: class SpeechRecognitionWorker UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:166: error: cannot find symbol UATHelper: Packaging (Android (ASTC)): public void onPartialResult(Hypothesis hypothesis) { UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): symbol: class Hypothesis UATHelper: Packaging (Android (ASTC)): location: class SpeechRecognitionWorker UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:183: error: cannot find symbol UATHelper: Packaging (Android (ASTC)): public void onResult(Hypothesis hypothesis, ArrayList<String> words, ArrayList<Integer> startFrames, ArrayList<Integer> endFrames) { UATHelper: Packaging (Android (ASTC)): ^ UATHelper: Packaging (Android (ASTC)): symbol: class Hypothesis UATHelper: Packaging (Android (ASTC)): location: class SpeechRecognitionWorker UATHelper: Packaging (Android (ASTC)): 12 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)): 32 actionable tasks: 4 executed, 28 up-to-date 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 14s UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c "D:\Others\Sppechtest\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

ssshammi commented 2 years ago

`Only able to package it with armv7 and when i try to set the debug mode on i get this https://stackoverflow.com/questions/73361300/adb-install-error-obb-file-unreal-andriod-aar


UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugJavaWithJavac
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\sphinxue4\SpeechRecognitionWorker.java:45: error: SpeechRecognitionWorker is not abstract and does not override abstract method onResult(Hypothesis) in RecognitionListener
UATHelper: Packaging (Android (ASTC)): public class SpeechRecognitionWorker implements Runnable, RecognitionListener {
UATHelper: Packaging (Android (ASTC)):        ^
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:108: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)):             recognizer.SetSphinxParamFloat(key, val);
UATHelper: Packaging (Android (ASTC)):                       ^
UATHelper: Packaging (Android (ASTC)):   symbol:   method SetSphinxParamFloat(String,float)
UATHelper: Packaging (Android (ASTC)):   location: variable recognizer of type SpeechRecognizer
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:117: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)):             recognizer.SetSphinxParamBoolean(key, val);
UATHelper: Packaging (Android (ASTC)):                       ^
UATHelper: Packaging (Android (ASTC)):   symbol:   method SetSphinxParamBoolean(String,boolean)
UATHelper: Packaging (Android (ASTC)):   location: variable recognizer of type SpeechRecognizer
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:126: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)):             recognizer.SetSphinxParamString(key, val);
UATHelper: Packaging (Android (ASTC)):                       ^
UATHelper: Packaging (Android (ASTC)):   symbol:   method SetSphinxParamString(String,String)
UATHelper: Packaging (Android (ASTC)):   location: variable recognizer of type SpeechRecognizer
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:135: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)):             recognizer.SetSphinxParamInt(key, val);
UATHelper: Packaging (Android (ASTC)):                       ^
UATHelper: Packaging (Android (ASTC)):   symbol:   method SetSphinxParamInt(String,int)
UATHelper: Packaging (Android (ASTC)):   location: variable recognizer of type SpeechRecognizer
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:182: error: method does not override or implement a method from a supertype
UATHelper: Packaging (Android (ASTC)):     @Override
UATHelper: Packaging (Android (ASTC)):     ^
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:292: error: method addKeyphraseSearch in class SpeechRecognizer cannot be applied to given types;
UATHelper: Packaging (Android (ASTC)):         recognizer.addKeyphraseSearch(KWS_SEARCH, phrases, tollerence, keyCount);
UATHelper: Packaging (Android (ASTC)):                   ^
UATHelper: Packaging (Android (ASTC)):   required: String,String
UATHelper: Packaging (Android (ASTC)):   found: String,String[],String[],Integer
UATHelper: Packaging (Android (ASTC)):   reason: actual and formal argument lists differ in length
UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\edu\cmu\pocketsphinx\SpeechRecognizer.java:271: error: method setKeyphrase in class Decoder cannot be applied to given types;
UATHelper: Packaging (Android (ASTC)):         decoder.setKeyphrase(name, phrase);
UATHelper: Packaging (Android (ASTC)):                ^
UATHelper: Packaging (Android (ASTC)):   required: String,String[],String[],int
UATHelper: Packaging (Android (ASTC)):   found: String,String
UATHelper: Packaging (Android (ASTC)):   reason: actual and formal argument lists differ in length
UATHelper: Packaging (Android (ASTC)): Note: Some input files use or override a deprecated API.
UATHelper: Packaging (Android (ASTC)): Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (ASTC)): Note: Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java uses unchecked or unsafe operations.
UATHelper: Packaging (Android (ASTC)): Note: Recompile with -Xlint:unchecked for details.
UATHelper: Packaging (Android (ASTC)): 8 errors
UATHelper: Packaging (Android (ASTC)): > Task :app:compileDebugJavaWithJavac FAILED
UATHelper: Packaging (Android (ASTC)): 32 actionable tasks: 5 executed, 27 up-to-date
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 16s
UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c "D:\Others\Sppechtest\Intermediate\Android\arm64\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