I
I
Ivan Olyansky2015-11-30 02:51:02
Android
Ivan Olyansky, 2015-11-30 02:51:02

WebView and web speech api - what are the alternative solutions?

Faced such a problem, WebView is not friendly with web speech api, but a simple Chrome browser is friendly. Can this be fixed somehow? I tried a third-party Crosswalk application - but there is a problem - an error constantly appears when adding a library, and there is no sending a POST request.

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 2

There are many answers to this error, but not a single solution helps, you just need to disable - xwalk_core_library_java
Then everything starts working right away. But it is necessary to use then - WebView.
I develop on API - 21.
The main task is to make background recognition. Is there any solution other than crutches?)
UPD:
I found it abroad - here is a solution - someone did it - it means it's possible. It remains to find out how?
https://stackoverflow.com/questions/17616994/offli...
here is the application itself - https://play.google.com/store/apps/details?id=com....
What tool was used to implement it?
Did you run permanent recognition in the background?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Olyansky, 2015-12-10
@johannnn

So everything was decided like this - the codes that are on the Internet - everything works. I got an error due to the fact that I had to set up speech recognition in the settings, add a package for offline recognition, Russian, and switch voice search in the settings.
In the background, the principle is that recognition is started via IncomingHandler, a message is constantly sent to start recognition when it is over, or nothing is found in the incoming stream.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question