Speech recognition (speech in the text) does not work in android 4.2.2

I have a device on which Android 4.2.2 is installed. Is does not support SpeechRecognition api. I tried one speech in a text application, and it gives the error "Speech to text does not support on your device." I also tried installing the Google Search application and tried to search using the voice icon, but it gives the following exception:

02-13 21:58:48.077: E/AndroidRuntime(9403): java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: Couldn't load google_recognizer_jni from loader dalvik.system.PathClassLoader[dexPath=/system/app/com.google.android.googlequick searchbox-4.0.26.1499465.arm-300400260-minAPI16.apk,libraryPath=/data/app- lib/com.google.android.googlequicksearchbox-4.0.26.1499465.arm-300400260- minAPI16]: findLibrary returned null 02-13 21:58:48.077: E/AndroidRuntime(9403): at emt.afterExecute(PG:487) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.lang.Thread.run(Thread.java:856) 02-13 21:58:48.077: E/AndroidRuntime(9403): Caused by: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: Couldn't load google_recognizer_jni from loader dalvik.system.PathClassLoader[dexPath=/system/app/com.google.android.googlequick searchbox-4.0.26.1499465.arm-300400260-minAPI16.apk,libraryPath=/data/app- lib/com.google.android.googlequicksearchbox-4.0.26.1499465.arm-300400260- minAPI16]: findLibrary returned null 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.FutureTask.report(FutureTask.java:94) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.FutureTask.get(FutureTask.java:160) 02-13 21:58:48.077: E/AndroidRuntime(9403): ... 4 more 02-13 21:58:48.077: E/AndroidRuntime(9403): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load google_recognizer_jni from loader dalvik.system.PathClassLoader[dexPath=/system/app/com.google.android.googlequick searchbox-4.0.26.1499465.arm-300400260-minAPI16.apk,libraryPath=/data/app- lib/com.google.android.googlequicksearchbox-4.0.26.1499465.arm-300400260- minAPI16]: findLibrary returned null 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.lang.Runtime.loadLibrary(Runtime.java:365) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.lang.System.loadLibrary(System.java:535) 02-13 21:58:48.077: E/AndroidRuntime(9403): at gjr.aGA(PG:39) 02-13 21:58:48.077: E/AndroidRuntime(9403): at gjo.a(PG:84) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.lang.reflect.Method.invokeNative(Native Method) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.lang.reflect.Method.invoke(Method.java:511) 02-13 21:58:48.077: E/AndroidRuntime(9403): at err.run(PG:102) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201( ScheduledThreadPoolExecutor.java:153) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) 02-13 21:58:48.077: E/AndroidRuntime(9403): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 

Can someone help me solve this problem?

Thanks.

+6
source share
2 answers

Try copying system/lib/libgoogle_recognizer_jni.so from https://docs.google.com/file/d/0B0P1Z8DuTunwN3pJNEsxa0JQYWs/edit to the /system/lib directory. Make sure you also run chmod 644 libgoogle_recognizer_jni.so .

+2
source

Looking at UnsatisfiedLinkError , this is because your own .so library is not inside the APK in the lib folder.

Take a look at this similar question .

+2
source

Source: https://habr.com/ru/post/982441/


All Articles