android语音识别问题
2hqljs 发布于2016-07 浏览:2773 回复:1
0
收藏

android语音识别刚调用,还没开始录音,就直接结束了。日志如下:

07-18 20:14:57.642 362-28759/? D/audio_hw_primary: select_devices: out_snd_device(0: none) in_snd_device(23: handset-mic)

07-18 20:14:57.642 362-28759/? D/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(23) acdb_id(4)

07-18 20:14:57.642 362-28759/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19

07-18 20:14:57.642 362-28759/? D/audio_hw_primary: enable_snd_device: snd_device(23: handset-mic)

07-18 20:14:57.648 362-28759/? D/audio_hw_primary: enable_audio_route: apply and update mixer path: audio-record

07-18 20:14:57.743 27932-28271/? I/MicrophoneInputStream: new instance(), sUsingCount=1, sInnerSourceInputStream=com.baidu.speech.s$a@1034b1b7

07-18 20:14:57.758 27932-28271/? I/AuthEasrHelper: easr auth: licenseUri=, appid=7413873

07-18 20:14:57.758 27932-28271/? I/AuthEasrHelper: licensePath: 

07-18 20:14:57.765 27932-28271/? E/MediaPlayer: Should have subtitle controller already set

07-18 20:14:57.769 27932-27932/? D/VoiceLogTag: +++voice++ status 0 Object class android.os.Bundle

07-18 20:14:57.785 27932-27932/? D/VoiceRecognitionClient: final results:{"error":7,"desc":"java.lang.reflect.UndeclaredThrowableException"}

07-18 20:14:57.786 27932-27932/? D/VoiceLogTag: +++voice++ error code 339973 type 327680


收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2c5812回复于2016-07

您好,以上都是debug信息,未看到有crash。建议您不要使用VoiceRecognitionClient接口,参考demo或http://yuyin.baidu.com/docs/asr/170

0
TOP
切换版块