2013-08-28 62 views
1

我連續VR出現故障。在我的代碼中有一個實現VR的片段。安卓系統,連續語音識別和錯誤IO異常

它的工作原理,但有時我看到,沒有任何明顯的原因,它停止。沒有錯誤,沒有崩潰,我可以通過按兩次按鈕重新啓動。

日誌沒有幫助,這是我得到BYT logcat的

08-27 23:46:00.708 I/AudioService(433): AudioFocus requestAudioFocus() from [email protected][email protected] 
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 up 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 was null 
08-27 23:46:00.856 W/Sidekick_LocationOracleImpl(15890): Best location was null 
08-27 23:46:01.505 I/ActivityManager(433): Start proc com.devexpert.weather for broadcast com.devexpert.weather/.view.WidgetWeather2x1: pid=16138 uid=10071 gids={50071, 3003, 1015, 1028} 
08-27 23:46:01.911 W/RecognitionDispatcher(15890): Could 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() from [email protected][email protected] 
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() from [email protected][email protected] 
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 up 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 was null 
08-27 23:46:06.606 W/Sidekick_LocationOracleImpl(15890): Best location was null 
08-27 23:46:07.661 W/RecognitionDispatcher(15890): Could 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() from [email protected][email protected] 
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() from [email protected][email protected] 
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 up 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 is now 2. Perhaps some tasks are too long, or the pool is too small. [GrecoExecutor-1] 
08-27 23:46:11.450 I/AudioService(433): AudioFocus abandonAudioFocus() from [email protected][email protected] 
08-27 23:46:11.458 W/Sidekick_LocationOracleImpl(15890): Best location was null 
08-27 23:46:11.458 W/Sidekick_LocationOracleImpl(15890): Best location was 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):  at com.google.android.speech.network.PairHttpConnection.connect(PairHttpConnection.java:135) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at com.google.android.speech.network.NetworkRecognitionRunner.runNetworkLoop(NetworkRecognitionRunner.java:219) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at com.google.android.speech.network.NetworkRecognitionRunner.access$000(NetworkRecognitionRunner.java:54) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at com.google.android.speech.network.NetworkRecognitionRunner$1.run(NetworkRecognitionRunner.java:73) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at java.util.concurrent.FutureTask.run(FutureTask.java:234) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) 
08-27 23:46:11.489 W/PairHttpConnection(15890): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 
08-27 23:46:11.489 W/PairHttpConnection(15890):  at com.google.android.searchcommon.util.ConcurrentUtils$1$1.run(ConcurrentUtils.java:90) 

,你可以看到,有VR的3開始,最後一個週期停止由於IOException異常

我們得到了此源代碼github https://github.com/fcrisciani/android-speech-recognition/tree/master/VoiceRecognition/src/com/speech/fcrisciani/voicerecognition

回答

0

您可能在這裏處理一些錯誤。你需要捕捉的第一個是outstanding on the AOSP bug tracker for nearly a year

我張貼在Google Product Forum about it here也沒有迴應。如果您正在閱讀本文並希望解決這些問題,請執行AOSP問題明星,並在產品論壇上發表評論,以獲得關注!

要解決此問題,您需要執行such as the one demonstrated here

您的特定錯誤發佈在AOSP bug tracker here上,但是與Google Voice Search一樣,它已關閉。有人張貼regarding the bug on the Product Forum here,但由於不活動而被關閉。

這是一個笑話,你無法讓Google對這些事情做任何事情。我想繼續咆哮,但最好不要......