请教版主,android怎样才可以实现离线命令识别一直运行【有命令处理,没命令就一直运行】
石浦雪菜小黄鱼 发布于2017-10 浏览:2591 回复:2
0
收藏

我使用的服务是:百度离线语音命令识别

开发平台和机型:平板android

SDK版本号:bd_speech_sdk_asr_v3.0.3.20170801_60da871


目前有一个需求是公司的设备要在离线状态下,等待用户发出指令来处理事件。

这样来看,就要求语音识别start以后,即使没有检测到有人讲话,仍然要不断的自动start。


我在工程里,初始化就调用start方法打开语音识别功能。当没有检测到命令,MessageStatusRecogListener类的onAsrFinishError方法会被触发,我在onAsrFinishError里增加“发广播给自己的Activity”的代码,

然后在Activity的广播处理代码中再次调用start方法,又打开语音识别。这个过程会一直循环进行 if 没有检测到命令。



然后过了几分钟,就异常了。


是不是不能这样使用??  如果想保持一直监听用户的命令,应该怎么实现比较好? 


错误的日志如下,截取了最后两段

10-29 14:53:02.825: I/RecogEventAdapter(3416): name:asr.finish; params:{"origin_result":{"sn":"cuid=A2F84FB5972FC733006470D7BF256648|84310111871UNFNA&sn=99a57ade-2157-4e78-9cf3-ebe5be7202ab&nettype=0","error":3,"desc":"Recorder open failed","sub_error":3001},"error":3,"desc":"Recorder open failed","sub_error":3001}

10-29 14:53:02.826: E/RecogEventAdapter(3416): asr error:{"origin_result":{"sn":"cuid=A2F84FB5972FC733006470D7BF256648|84310111871UNFNA&sn=99a57ade-2157-4e78-9cf3-ebe5be7202ab&nettype=0","error":3,"desc":"Recorder open failed","sub_error":3001},"error":3,"desc":"Recorder open failed","sub_error":3001}

10-29 14:53:02.826: I/System.out(3416): 识别错误, 错误码:3;错误消息:音频问题;描述信息:Recorder open failed

10-29 14:53:02.826: I/SendBroadcastPermission(3416): action:com.baidu.asr.result, mPermissionType:0

10-29 14:53:02.828: I/System.out(3416): 识别错误, 错误码:3

10-29 14:53:02.828: I/RecogEventAdapter(3416): name:asr.exit; params:null

10-29 14:53:02.828: I/System.out(3416): 识别引擎结束并空闲中  ;time=1509259982828

10-29 14:53:02.837: I/System.out(3416): BroadcastReceiver-->error

10-29 14:53:02.837: I/System.out(3416): restartVoiceAsr

10-29 14:53:02.838: I/System.out(3416): fetch

10-29 14:53:02.838: I/MyRecognizer.Debug(3416): asr params(反馈请带上此行日志):{"decoder":2}

10-29 14:53:02.841: E/ASREngine(3416): VAD Model=model-vad

10-29 14:53:02.876: I/RecogEventAdapter(3416): name:asr.ready; params:null

10-29 14:53:02.876: I/System.out(3416): 引擎就绪,可以开始说话。  ;time=1509259982876

10-29 14:53:02.935: I/HwAudioRecordImpl(3416): sendStateChangedIntent, state=1

10-29 14:53:02.951: W/audioSource :(3416): 1

10-29 14:53:02.960: I/AudioRecordPermission(3416): remindWithResult:false

10-29 14:53:02.960: I/HwAudioRecordImpl(3416): checkRecordActive

10-29 14:53:02.970: I/HwAudioRecordImpl(3416): sendStateChangedIntent, state=3

10-29 14:53:03.079: I/MicrophoneServer(3416): audio mills is 0

10-29 14:53:03.181: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":73}

10-29 14:53:03.181: I/StatusRecogListener(3416): 音量百分比1 ; 音量73

10-29 14:53:03.381: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":105}

10-29 14:53:03.381: I/StatusRecogListener(3416): 音量百分比2 ; 音量105

10-29 14:53:03.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":39}

10-29 14:53:03.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量39

10-29 14:53:03.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":24}

10-29 14:53:03.780: I/StatusRecogListener(3416): 音量百分比0 ; 音量24

10-29 14:53:03.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":62}

10-29 14:53:03.980: I/StatusRecogListener(3416): 音量百分比1 ; 音量62

10-29 14:53:04.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":37}

10-29 14:53:04.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量37

10-29 14:53:04.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":11}

10-29 14:53:04.380: I/StatusRecogListener(3416): 音量百分比0 ; 音量11

10-29 14:53:04.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":126}

10-29 14:53:04.581: I/StatusRecogListener(3416): 音量百分比2 ; 音量126

10-29 14:53:04.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":29}

10-29 14:53:04.780: I/StatusRecogListener(3416): 音量百分比0 ; 音量29

10-29 14:53:04.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":5}

10-29 14:53:04.980: I/StatusRecogListener(3416): 音量百分比0 ; 音量5

10-29 14:53:05.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":2}

10-29 14:53:05.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量2

10-29 14:53:05.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":3,"volume":153}

10-29 14:53:05.380: I/StatusRecogListener(3416): 音量百分比3 ; 音量153

10-29 14:53:05.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":135}

10-29 14:53:05.580: I/StatusRecogListener(3416): 音量百分比2 ; 音量135

10-29 14:53:05.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":32}

10-29 14:53:05.781: I/StatusRecogListener(3416): 音量百分比0 ; 音量32

10-29 14:53:05.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":29}

10-29 14:53:05.980: I/StatusRecogListener(3416): 音量百分比0 ; 音量29

10-29 14:53:06.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":23}

10-29 14:53:06.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量23

10-29 14:53:06.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":110}

10-29 14:53:06.380: I/StatusRecogListener(3416): 音量百分比2 ; 音量110

10-29 14:53:06.584: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":4}

10-29 14:53:06.585: I/StatusRecogListener(3416): 音量百分比0 ; 音量4

10-29 14:53:06.781: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":2}

10-29 14:53:06.781: I/StatusRecogListener(3416): 音量百分比0 ; 音量2

10-29 14:53:06.981: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":107}

10-29 14:53:06.981: I/StatusRecogListener(3416): 音量百分比2 ; 音量107

10-29 14:53:07.183: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":87}

10-29 14:53:07.184: I/StatusRecogListener(3416): 音量百分比1 ; 音量87

10-29 14:53:07.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":44}

10-29 14:53:07.381: I/StatusRecogListener(3416): 音量百分比0 ; 音量44

10-29 14:53:07.605: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":38}

10-29 14:53:07.605: I/StatusRecogListener(3416): 音量百分比0 ; 音量38

10-29 14:53:07.799: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":80}

10-29 14:53:07.799: I/StatusRecogListener(3416): 音量百分比1 ; 音量80

10-29 14:53:07.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":6}

10-29 14:53:07.981: I/StatusRecogListener(3416): 音量百分比0 ; 音量6

10-29 14:53:08.183: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":18}

10-29 14:53:08.183: I/StatusRecogListener(3416): 音量百分比0 ; 音量18

10-29 14:53:08.383: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":30}

10-29 14:53:08.383: I/StatusRecogListener(3416): 音量百分比0 ; 音量30

10-29 14:53:08.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":12}

10-29 14:53:08.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量12

10-29 14:53:08.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":122}

10-29 14:53:08.780: I/StatusRecogListener(3416): 音量百分比2 ; 音量122

10-29 14:53:08.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":46}

10-29 14:53:08.980: I/StatusRecogListener(3416): 音量百分比0 ; 音量46

10-29 14:53:09.181: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":26}

10-29 14:53:09.181: I/StatusRecogListener(3416): 音量百分比0 ; 音量26

10-29 14:53:09.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":8}

10-29 14:53:09.380: I/StatusRecogListener(3416): 音量百分比0 ; 音量8

10-29 14:53:09.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":21}

10-29 14:53:09.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量21

10-29 14:53:09.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":24}

10-29 14:53:09.780: I/StatusRecogListener(3416): 音量百分比0 ; 音量24

10-29 14:53:09.982: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":19}

10-29 14:53:09.982: I/StatusRecogListener(3416): 音量百分比0 ; 音量19

10-29 14:53:09.984: I/RecogEventAdapter(3416): name:asr.sn; params:{"sn":"cuid=A2F84FB5972FC733006470D7BF256648|84310111871UNFNA&sn=1b684176-40b1-4ded-8f5f-8f210245a18b&nettype=0"}

10-29 14:53:09.984: I/RecogEventAdapter(3416): name:asr.begin; params:null

10-29 14:53:09.984: I/System.out(3416): 检测到用户说话  ;time=1509259989984

10-29 14:53:10.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":2}

10-29 14:53:10.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量2

10-29 14:53:10.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":26}

10-29 14:53:10.380: I/StatusRecogListener(3416): 音量百分比0 ; 音量26

10-29 14:53:10.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":4}

10-29 14:53:10.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量4

10-29 14:53:10.782: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":16}

10-29 14:53:10.782: I/StatusRecogListener(3416): 音量百分比0 ; 音量16

10-29 14:53:10.983: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":8}

10-29 14:53:10.983: I/StatusRecogListener(3416): 音量百分比0 ; 音量8

10-29 14:53:11.039: I/RecogEventAdapter(3416): name:asr.end; params:{"vad_silent_start":"1509259991036"}

10-29 14:53:11.040: I/System.out(3416): 检测到用户说话结束  ;time=1509259991040

10-29 14:53:11.142: I/HwAudioRecordImpl(3416): sendStateChangedIntent, state=1

10-29 14:53:16.065: W/System.err(3416): java.net.SocketException: Socket closed

10-29 14:53:16.066: W/System.err(3416): at java.net.PlainSocketImpl.socketAccept(Native Method)

10-29 14:53:16.066: W/System.err(3416): at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:389)

10-29 14:53:16.066: W/System.err(3416): at java.net.ServerSocket.implAccept(ServerSocket.java:534)

10-29 14:53:16.066: W/System.err(3416): at java.net.ServerSocket.accept(ServerSocket.java:502)

10-29 14:53:16.066: W/System.err(3416): at com.baidu.speech.audio.MicrophoneServer$1.run(Unknown Source)


收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3石浦雪菜小黄鱼回复于2017-10

谢谢回复,但是唤醒功能每次前面都要加上唤醒词,也不太好用,用户体验也不好。。

0
#2fujiayi1984回复于2017-10

石浦雪菜小黄鱼:

我使用的服务是:百度离线语音命令识别

开发平台和机型:平板android

SDK版本号:bd_speech_sdk_asr_v3.0.3.20170801_60da871


目前有一个需求是公司的设备要在离线状态下,等待用户发出指令来处理事件。

这样来看,就要求语音识别start以后,即使没有检测到有人讲话,仍然要不断的自动start。


我在工程里,初始化就调用start方法打开语音识别功能。当没有检测到命令,MessageStatusRecogListener类的onAsrFinishError方法会被触发,我在onAsrFinishError里增加“发广播给自己的Activity”的代码,

然后在Activity的广播处理代码中再次调用start方法,又打开语音识别。这个过程会一直循环进行 if 没有检测到命令。



然后过了几分钟,就异常了。


是不是不能这样使用??  如果想保持一直监听用户的命令,应该怎么实现比较好? 


错误的日志如下,截取了最后两段

10-29 14:53:02.825: I/RecogEventAdapter(3416): name:asr.finish; params:{"origin_result":{"sn":"cuid=A2F84FB5972FC733006470D7BF256648|84310111871UNFNA&sn=99a57ade-2157-4e78-9cf3-ebe5be7202ab&nettype=0","error":3,"desc":"Recorder open failed","sub_error":3001},"error":3,"desc":"Recorder open failed","sub_error":3001}

10-29 14:53:02.826: E/RecogEventAdapter(3416): asr error:{"origin_result":{"sn":"cuid=A2F84FB5972FC733006470D7BF256648|84310111871UNFNA&sn=99a57ade-2157-4e78-9cf3-ebe5be7202ab&nettype=0","error":3,"desc":"Recorder open failed","sub_error":3001},"error":3,"desc":"Recorder open failed","sub_error":3001}

10-29 14:53:02.826: I/System.out(3416): 识别错误, 错误码:3;错误消息:音频问题;描述信息:Recorder open failed

10-29 14:53:02.826: I/SendBroadcastPermission(3416): action:com.baidu.asr.result, mPermissionType:0

10-29 14:53:02.828: I/System.out(3416): 识别错误, 错误码:3

10-29 14:53:02.828: I/RecogEventAdapter(3416): name:asr.exit; params:null

10-29 14:53:02.828: I/System.out(3416): 识别引擎结束并空闲中  ;time=1509259982828

10-29 14:53:02.837: I/System.out(3416): BroadcastReceiver-->error

10-29 14:53:02.837: I/System.out(3416): restartVoiceAsr

10-29 14:53:02.838: I/System.out(3416): fetch

10-29 14:53:02.838: I/MyRecognizer.Debug(3416): asr params(反馈请带上此行日志):{"decoder":2}

10-29 14:53:02.841: E/ASREngine(3416): VAD Model=model-vad

10-29 14:53:02.876: I/RecogEventAdapter(3416): name:asr.ready; params:null

10-29 14:53:02.876: I/System.out(3416): 引擎就绪,可以开始说话。  ;time=1509259982876

10-29 14:53:02.935: I/HwAudioRecordImpl(3416): sendStateChangedIntent, state=1

10-29 14:53:02.951: W/audioSource :(3416): 1

10-29 14:53:02.960: I/AudioRecordPermission(3416): remindWithResult:false

10-29 14:53:02.960: I/HwAudioRecordImpl(3416): checkRecordActive

10-29 14:53:02.970: I/HwAudioRecordImpl(3416): sendStateChangedIntent, state=3

10-29 14:53:03.079: I/MicrophoneServer(3416): audio mills is 0

10-29 14:53:03.181: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":73}

10-29 14:53:03.181: I/StatusRecogListener(3416): 音量百分比1 ; 音量73

10-29 14:53:03.381: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":105}

10-29 14:53:03.381: I/StatusRecogListener(3416): 音量百分比2 ; 音量105

10-29 14:53:03.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":39}

10-29 14:53:03.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量39

10-29 14:53:03.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":24}

10-29 14:53:03.780: I/StatusRecogListener(3416): 音量百分比0 ; 音量24

10-29 14:53:03.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":62}

10-29 14:53:03.980: I/StatusRecogListener(3416): 音量百分比1 ; 音量62

10-29 14:53:04.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":37}

10-29 14:53:04.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量37

10-29 14:53:04.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":11}

10-29 14:53:04.380: I/StatusRecogListener(3416): 音量百分比0 ; 音量11

10-29 14:53:04.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":126}

10-29 14:53:04.581: I/StatusRecogListener(3416): 音量百分比2 ; 音量126

10-29 14:53:04.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":29}

10-29 14:53:04.780: I/StatusRecogListener(3416): 音量百分比0 ; 音量29

10-29 14:53:04.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":5}

10-29 14:53:04.980: I/StatusRecogListener(3416): 音量百分比0 ; 音量5

10-29 14:53:05.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":2}

10-29 14:53:05.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量2

10-29 14:53:05.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":3,"volume":153}

10-29 14:53:05.380: I/StatusRecogListener(3416): 音量百分比3 ; 音量153

10-29 14:53:05.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":135}

10-29 14:53:05.580: I/StatusRecogListener(3416): 音量百分比2 ; 音量135

10-29 14:53:05.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":32}

10-29 14:53:05.781: I/StatusRecogListener(3416): 音量百分比0 ; 音量32

10-29 14:53:05.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":29}

10-29 14:53:05.980: I/StatusRecogListener(3416): 音量百分比0 ; 音量29

10-29 14:53:06.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":23}

10-29 14:53:06.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量23

10-29 14:53:06.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":110}

10-29 14:53:06.380: I/StatusRecogListener(3416): 音量百分比2 ; 音量110

10-29 14:53:06.584: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":4}

10-29 14:53:06.585: I/StatusRecogListener(3416): 音量百分比0 ; 音量4

10-29 14:53:06.781: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":2}

10-29 14:53:06.781: I/StatusRecogListener(3416): 音量百分比0 ; 音量2

10-29 14:53:06.981: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":107}

10-29 14:53:06.981: I/StatusRecogListener(3416): 音量百分比2 ; 音量107

10-29 14:53:07.183: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":87}

10-29 14:53:07.184: I/StatusRecogListener(3416): 音量百分比1 ; 音量87

10-29 14:53:07.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":44}

10-29 14:53:07.381: I/StatusRecogListener(3416): 音量百分比0 ; 音量44

10-29 14:53:07.605: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":38}

10-29 14:53:07.605: I/StatusRecogListener(3416): 音量百分比0 ; 音量38

10-29 14:53:07.799: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":1,"volume":80}

10-29 14:53:07.799: I/StatusRecogListener(3416): 音量百分比1 ; 音量80

10-29 14:53:07.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":6}

10-29 14:53:07.981: I/StatusRecogListener(3416): 音量百分比0 ; 音量6

10-29 14:53:08.183: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":18}

10-29 14:53:08.183: I/StatusRecogListener(3416): 音量百分比0 ; 音量18

10-29 14:53:08.383: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":30}

10-29 14:53:08.383: I/StatusRecogListener(3416): 音量百分比0 ; 音量30

10-29 14:53:08.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":12}

10-29 14:53:08.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量12

10-29 14:53:08.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":2,"volume":122}

10-29 14:53:08.780: I/StatusRecogListener(3416): 音量百分比2 ; 音量122

10-29 14:53:08.980: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":46}

10-29 14:53:08.980: I/StatusRecogListener(3416): 音量百分比0 ; 音量46

10-29 14:53:09.181: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":26}

10-29 14:53:09.181: I/StatusRecogListener(3416): 音量百分比0 ; 音量26

10-29 14:53:09.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":8}

10-29 14:53:09.380: I/StatusRecogListener(3416): 音量百分比0 ; 音量8

10-29 14:53:09.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":21}

10-29 14:53:09.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量21

10-29 14:53:09.780: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":24}

10-29 14:53:09.780: I/StatusRecogListener(3416): 音量百分比0 ; 音量24

10-29 14:53:09.982: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":19}

10-29 14:53:09.982: I/StatusRecogListener(3416): 音量百分比0 ; 音量19

10-29 14:53:09.984: I/RecogEventAdapter(3416): name:asr.sn; params:{"sn":"cuid=A2F84FB5972FC733006470D7BF256648|84310111871UNFNA&sn=1b684176-40b1-4ded-8f5f-8f210245a18b&nettype=0"}

10-29 14:53:09.984: I/RecogEventAdapter(3416): name:asr.begin; params:null

10-29 14:53:09.984: I/System.out(3416): 检测到用户说话  ;time=1509259989984

10-29 14:53:10.180: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":2}

10-29 14:53:10.180: I/StatusRecogListener(3416): 音量百分比0 ; 音量2

10-29 14:53:10.380: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":26}

10-29 14:53:10.380: I/StatusRecogListener(3416): 音量百分比0 ; 音量26

10-29 14:53:10.580: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":4}

10-29 14:53:10.580: I/StatusRecogListener(3416): 音量百分比0 ; 音量4

10-29 14:53:10.782: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":16}

10-29 14:53:10.782: I/StatusRecogListener(3416): 音量百分比0 ; 音量16

10-29 14:53:10.983: I/RecogEventAdapter(3416): name:asr.volume; params:{"volume-percent":0,"volume":8}

10-29 14:53:10.983: I/StatusRecogListener(3416): 音量百分比0 ; 音量8

10-29 14:53:11.039: I/RecogEventAdapter(3416): name:asr.end; params:{"vad_silent_start":"1509259991036"}

10-29 14:53:11.040: I/System.out(3416): 检测到用户说话结束  ;time=1509259991040

10-29 14:53:11.142: I/HwAudioRecordImpl(3416): sendStateChangedIntent, state=1

10-29 14:53:16.065: W/System.err(3416): java.net.SocketException: Socket closed

10-29 14:53:16.066: W/System.err(3416):  at java.net.PlainSocketImpl.socketAccept(Native Method)

10-29 14:53:16.066: W/System.err(3416):  at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:389)

10-29 14:53:16.066: W/System.err(3416):  at java.net.ServerSocket.implAccept(ServerSocket.java:534)

10-29 14:53:16.066: W/System.err(3416):  at java.net.ServerSocket.accept(ServerSocket.java:502)

10-29 14:53:16.066: W/System.err(3416):  at com.baidu.speech.audio.MicrophoneServer$1.run(Unknown Source)


回复石浦雪菜小黄鱼:请看下唤醒词功能

0
TOP
切换版块