帖子

报错20006无录音权限,而实际已开

[复制链接]

该用户从未签到

543 155****7530 发表于 2019-7-11 15:40:58 1#
用我的小米5开发语音唤醒+听写的功能,已实现。由业务需求弄到一个工业pda上,系统是android7.1。
我在manifest文件中配置了录音和写入内存的权限,activity也有对运行时权限的检查。但在这个pda上只能实现唤醒,紧接着该听写了就直接报错,提示错误码20006。很奇怪啊。唤醒可以,听写就不行了?不知道是什么原因。求指导谢谢。

控制台日志如下:
  1. 2019-07-11 15:31:07.313 5125-5125/com.iflytek W/IVW: ----检查权限啊----
  2. 2019-07-11 15:31:07.393 473-11534/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  3. 2019-07-11 15:31:07.394 5125-5256/com.iflytek E/AudioRecord: start() status -38
  4. 2019-07-11 15:31:07.394 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  5. 2019-07-11 15:31:07.435 473-2787/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  6. 2019-07-11 15:31:07.435 5125-5256/com.iflytek E/AudioRecord: start() status -38
  7. 2019-07-11 15:31:07.435 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  8. 2019-07-11 15:31:07.437 5125-5125/com.iflytek W/IAT: 听写-开始讲话
  9. 2019-07-11 15:31:07.469 5125-5159/com.iflytek W/libEGL: [ANDROID_RECORDABLE] format: 1
  10. 2019-07-11 15:31:07.476 473-8981/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  11. 2019-07-11 15:31:07.476 5125-5256/com.iflytek E/AudioRecord: start() status -38
  12. 2019-07-11 15:31:07.476 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  13. 2019-07-11 15:31:07.517 473-6827/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  14. 2019-07-11 15:31:07.517 5125-5256/com.iflytek E/AudioRecord: start() status -38
  15. 2019-07-11 15:31:07.517 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  16. 2019-07-11 15:31:07.555 5125-5159/com.iflytek W/libEGL: [ANDROID_RECORDABLE] format: 1
  17. 2019-07-11 15:31:07.559 473-11325/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  18. 2019-07-11 15:31:07.559 5125-5256/com.iflytek E/AudioRecord: start() status -38
  19. 2019-07-11 15:31:07.559 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  20. 2019-07-11 15:31:07.600 473-1361/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  21. 2019-07-11 15:31:07.600 5125-5256/com.iflytek E/AudioRecord: start() status -38
  22. 2019-07-11 15:31:07.600 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  23. 2019-07-11 15:31:07.641 473-2826/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  24. 2019-07-11 15:31:07.641 5125-5256/com.iflytek E/AudioRecord: start() status -38
  25. 2019-07-11 15:31:07.642 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  26. 2019-07-11 15:31:07.683 473-5636/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  27. 2019-07-11 15:31:07.683 5125-5256/com.iflytek E/AudioRecord: start() status -38
  28. 2019-07-11 15:31:07.683 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  29. 2019-07-11 15:31:07.724 473-2788/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  30. 2019-07-11 15:31:07.724 5125-5256/com.iflytek E/AudioRecord: start() status -38
  31. 2019-07-11 15:31:07.725 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  32. 2019-07-11 15:31:07.766 473-6586/? E/APM_AudioPolicyManager: startInput(122750) failed: other input 122734 already started
  33. 2019-07-11 15:31:07.766 5125-5256/com.iflytek E/AudioRecord: start() status -38
  34. 2019-07-11 15:31:07.766 5125-5256/com.iflytek E/MscSpeechLog: recorder state is not recoding
  35. 2019-07-11 15:31:07.767 5125-5256/com.iflytek E/MscSpeechLog: recoder start failed
  36. 2019-07-11 15:31:07.767 5125-5256/com.iflytek W/System.err: 启动录音失败.(错误码:20006)
  37. 2019-07-11 15:31:07.768 5125-5256/com.iflytek W/System.err:     at com.iflytek.cloud.record.PcmRecorder.run(SourceFile:268)
  38. 2019-07-11 15:31:07.936 473-5229/? W/AudioALSAStreamManager: -routingInputDevice(), input_device == AUDIO_DEVICE_NONE(0x0), return
  39. 2019-07-11 15:31:07.941 5125-5159/com.iflytek W/libEGL: [ANDROID_RECORDABLE] format: 1
  40. 2019-07-11 15:31:08.074 473-5279/? W/AudioALSAStreamManager: -routingInputDevice(), input_device == current_input_device(0x80000004), return
  41. 2019-07-11 15:31:08.274 347-719/? E/MAL-RDS:  (  rds_ru_3gpp_status_ind, 1971) [RDS-E][RU][EVENT_RU_DM_3GPP_STATUS_IND] Invalid u43gpp_status:0x8 sim:0
  42. 2019-07-11 15:31:09.881 1056-1056/? W/WindowManager: Attempted to remove non-existing token: android.os.Binder@2aa446d
复制代码



155****7530 发表于 2019-7-12 09:16:11
2#
不要沉啊,吊大的求看下
使用道具 举报 回复
177****8010 发表于 2019-7-12 11:03:49
3#
麻烦看一下msc中的日志,具体方法见下面,日志生成方法:http://bbs.xfyun.cn/forum.php?mod=viewthread&tid=9870

楼内回复

感谢,麻烦帮忙看下。我看了下日志没看出来,音频里有唤醒的,没有iat的  详情 发表于 2019-7-13 14:22
使用道具 举报 回复
155****7530 发表于 2019-7-13 14:22:27
4#
177****8010 发表于 2019-7-12 11:03
麻烦看一下msc中的日志,具体方法见下面,日志生成方法:http://bbs.xfyun.cn/forum.php?mod=viewthread&ti ...

感谢,麻烦帮忙看下。我看了下日志没看出来,音频里有唤醒的,没有iat的

msc.rar

98.42 KB, 下载次数: 1

录音和日志文件

使用道具 举报 回复