java - Android, Continuous Voice Recogntion and error IO Exception -


i have trouble vr continuous. in code there fragment implement vr.

it works sometime saw without apparent reason stops. no error, no crash, i'm able restart taping on button 2 time.

log doesn't help, got byt logcat

08-27 23:46:00.708 i/audioservice(433):  audiofocus  requestaudiofocus() android.media.audiomanager@422819d8com.google.android.voicesearch.audio.audiorouterimpl$1@4229e1a8 08-27 23:46:00.755 i/vs.g3enginemanager(15890): create_rm: m=endpointer_dictation,l=en-us 08-27 23:46:00.770 i/vs.g3enginemanager(15890): brought new g3 instance :/system/usr/srec/en-us/endpointer_dictation.config for: en-usin: 13 ms 08-27 23:46:00.848 w/sidekick_locationoracleimpl(15890): best location null 08-27 23:46:00.856 w/sidekick_locationoracleimpl(15890): best location null 08-27 23:46:01.505 i/activitymanager(433): start proc com.devexpert.weather broadcast com.devexpert.weather/.view.widgetweather2x1: pid=16138 uid=10071 gids={50071, 3003, 1015, 1028} 08-27 23:46:01.911 w/recognitiondispatcher(15890): not stop engine 3 08-27 23:46:06.356 i/microphoneinputstream(15890): mic_close 08-27 23:46:06.388 i/audioservice(433):  audiofocus  abandonaudiofocus() android.media.audiomanager@422819d8com.google.android.voicesearch.audio.audiorouterimpl$1@4229e1a8  08-27 23:46:06.411 i/decoder (15890): info: recognition time wall: 5.61636 sec user: 1.49219 sec sys: 0.234375 sec  08-27 23:46:06.544 i/googlerecognitionserviceimpl(15890): #startlistening [it-it] 08-27 23:46:06.552 i/audioservice(433):  audiofocus  requestaudiofocus() android.media.audiomanager@422819d8com.google.android.voicesearch.audio.audiorouterimpl$1@4229e1a8 08-27 23:46:06.552 i/vs.g3enginemanager(15890): create_rm: m=endpointer_dictation,l=en-us 08-27 23:46:06.575 i/vs.g3enginemanager(15890): brought new g3 instance :/system/usr/srec/en-us/endpointer_dictation.config for: en-usin: 25 ms 08-27 23:46:06.598 w/sidekick_locationoracleimpl(15890): best location null 08-27 23:46:06.606 w/sidekick_locationoracleimpl(15890): best location null 08-27 23:46:07.661 w/recognitiondispatcher(15890): not stop engine 3 08-27 23:46:11.231 i/microphoneinputstream(15890): mic_close 08-27 23:46:11.263 i/audioservice(433):  audiofocus  abandonaudiofocus() android.media.audiomanager@422819d8com.google.android.voicesearch.audio.audiorouterimpl$1@4229e1a8 08-27 23:46:11.278 i/decoder (15890): info: recognition time wall: 4.67749 sec user: 1.21875 sec sys: 0.21875 sec  08-27 23:46:11.395 i/googlerecognitionserviceimpl(15890): #startlistening [it-it] 08-27 23:46:11.411 i/audioservice(433):  audiofocus  requestaudiofocus() android.media.audiomanager@422819d8com.google.android.voicesearch.audio.audiorouterimpl$1@4229e1a8 08-27 23:46:11.419 i/vs.g3enginemanager(15890): create_rm: m=endpointer_dictation,l=en-us 08-27 23:46:11.450 i/vs.g3enginemanager(15890): brought new g3 instance :/system/usr/srec/en-us/endpointer_dictation.config for: en-usin: 28 ms 08-27 23:46:11.450 w/search.concurrentutils(15890): executor queue length 2. perhaps tasks long, or pool small. [grecoexecutor-1] 08-27 23:46:11.450 i/audioservice(433):  audiofocus  abandonaudiofocus() android.media.audiomanager@422819d8com.google.android.voicesearch.audio.audiorouterimpl$1@4229e1a8 08-27 23:46:11.458 w/sidekick_locationoracleimpl(15890): best location null 08-27 23:46:11.458 w/sidekick_locationoracleimpl(15890): best location null 08-27 23:46:11.489 w/pairhttpconnection(15890): [upload] connection error 08-27 23:46:11.489 w/pairhttpconnection(15890): java.io.ioexception: timed out / error during connect 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ com.google.android.speech.network.pairhttpconnection.connect(pairhttpconnection.java:135) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ com.google.android.speech.network.networkrecognitionrunner.runnetworkloop(networkrecognitionrunner.java:219) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ com.google.android.speech.network.networkrecognitionrunner.access$000(networkrecognitionrunner.java:54) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ com.google.android.speech.network.networkrecognitionrunner$1.run(networkrecognitionrunner.java:73) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ java.util.concurrent.executors$runnableadapter.call(executors.java:390) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ java.util.concurrent.futuretask.run(futuretask.java:234) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:153) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:267)  08-27 23:46:11.489 w/pairhttpconnection(15890):    @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573) 08-27 23:46:11.489 w/pairhttpconnection(15890):     @ com.google.android.searchcommon.util.concurrentutils$1$1.run(concurrentutils.java:90) 

as can see, there 3 start of vr, last cycle stops due ioexception

we got source code github https://github.com/fcrisciani/android-speech-recognition/tree/master/voicerecognition/src/com/speech/fcrisciani/voicerecognition

you possibly dealing number of bugs here. first 1 need catch has been outstanding on aosp bug tracker year.

i posted on google product forum here too, no response. if reading , these issues resolved, please star aosp issue , comment on product forum post noticed!

to work around issue, you'll need implementation such 1 demonstrated here.

your particular bug posted on aosp bug tracker here, closed google voice search. posted regarding bug on product forum here, closed due inactivity.

it's joke cannot google these things. i'd continue rant, best not....


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -