运行sdk的demo也无法通过IN_FILE唤醒
明沐林 发布于2018-07 浏览:2197 回复:6
0
收藏

运行SDK里的DEMO,设置params.put(SpeechConstant.IN_FILE, "res:///com/baidu/android/voicedemo/offline_input.pcm");,也无法唤醒,

I/MyWakeup.Debug: wakeup params(反馈请带上此行日志):{"appid":"10674398","kws-file":"assets:\/\/\/WakeUp.bin","infile":"res:\/\/\/com\/baidu\/android\/voicedemo\/offline_input.pcm"}
07-21 18:35:38.694 17519-18000/com.baidu.speech.recognizerdemo I/[BDASR_LOG] Policy: use custom galaxy = false
07-21 18:35:38.694 17519-18000/com.baidu.speech.recognizerdemo D/Device: read deviceID:D173F413AFF021D743A147CD2B7C1597|296491340679368
07-21 18:35:38.719 17519-17983/com.baidu.speech.recognizerdemo I/[BDASR_LOG] MicrophoneServer: add wrap socket, mRemoteOutputStreams size = 1 firstStart = true
07-21 18:35:38.723 17519-18001/com.baidu.speech.recognizerdemo I/MicrophoneServer: audio mills is 0
07-21 18:35:38.724 17519-17519/com.baidu.speech.recognizerdemo I/WakeupEventAdapter: wakeup name:wp.enter; params:null
07-21 18:35:38.725 17519-17519/com.baidu.speech.recognizerdemo I/WakeupEventAdapter: wakeup name:wp.ready; params:null
07-21 18:35:38.795 17519-18001/com.baidu.speech.recognizerdemo W/System.err: java.io.EOFException
07-21 18:35:38.795 17519-18001/com.baidu.speech.recognizerdemo W/System.err: at java.io.DataInputStream.readFully(DataInputStream.java:200)
07-21 18:35:38.796 17519-18001/com.baidu.speech.recognizerdemo W/System.err: at com.baidu.speech.audio.MicrophoneServer.run(Unknown Source:16)
07-21 18:35:38.796 17519-18001/com.baidu.speech.recognizerdemo W/System.err: at java.lang.Thread.run(Thread.java:764)
07-21 18:35:38.796 17519-18001/com.baidu.speech.recognizerdemo I/[BDASR_LOG] MicrophoneServer: finally, mRemoteOutputStreams size = 1 firstStart = true

收藏
点赞
0
个赞
共6条回复 最后由用户已被禁言回复于2022-04
#7卡卡卡卡卡卡90回复于2018-09

楼主

怎么解决的 我也同样的问题

0
#6明沐林回复于2018-08
#5 飞翔的小鸟216回复
这个是怎么解决的啊,求分享  

路径没写对,放到assets下面就好了

0
#5飞翔的小鸟216回复于2018-08

这个是怎么解决的啊,求分享

 

0
#4明沐林回复于2018-07
#3 fujiayi1984回复
注意下 offline_input.pcm 听下 ,是否含有唤醒词,可以自行录音测试
展开

已解决了,谢谢!

0
#3fujiayi1984回复于2018-07

注意下 offline_input.pcm 听下 ,是否含有唤醒词,可以自行录音测试

0
#2fujiayi1984回复于2018-07

注意下 offline_input.pcm 听下 ,是否含有唤醒词,可以自行录音测试

0
TOP
切换版块