语音唤醒Debug
qxdnfsy 发布于2018-01 浏览:2953 回复:8
0
收藏
快速回复
1、百度语音唤醒在初始化时,出现Debug中断;
2、百度语音唤醒及语音识别是否支持蓝牙音频输入,如何设置?
第一个问题,多方查找原因,只要不做初始化动作,App在Debug时,不会出现Debug中断错误,中断错误见图片。
经网上查找原因,说差个galaxy-lite-2.0.0.jar,但网上找到后加入Lib,也还是会出现这个Debug中断错误,好像与DeviceID获取有关,请帮忙解决,谢谢!
收藏
点赞
0
个赞
共8条回复 最后由用户已被禁言回复于2022-04
#9卡农LLLL回复于2018-02

...知识来源于填坑..

0
#8qxdnfsy回复于2018-02

花了一天时间,把项目转为AS,没有debug中断错误了,可能还是eclipse的项目设置或哪一块有问题,代码完全不变,见鬼了,又要学习AS的使用了。

0
#7qxdnfsy回复于2018-02

官方给的是Androidstudio工程,我用的是eclipse,把工程转为Androidstudio中,单独用Androidstudio工程没有发现debug错误问题,不知道是不是地图SDK、TTS SDK、语音SDK等一起用造成的冲突(极度怀疑),转完了再说。

0
#6fujiayi1984回复于2018-02

请先测试下官方demo有无此问题

0
#5卡农LLLL回复于2018-02

最新的TTS里面有这个库.我昨天才看到的.语音识别里面没加进去.估计还没更新.

0
#4卡农LLLL回复于2018-02

.....这论坛压图压得太厉害了.....是我的话估计就不想管这个了..之前报deviceid的异常也是能运行的

0
#3qxdnfsy回复于2018-02

谢谢回复!

百度地图、百度定位、百度TTS、百度语音在项目中均有用,deviceid是网上别人给的提示,Debug日志如下:

01-31 23:54:18.770: E/HAL(11754): load: id=gralloc != hmi->id=gralloc
01-31 23:54:18.776: I/System.out(11754): Sending WAIT chunk
01-31 23:54:18.790: I/art(11754): Debugger is active
01-31 23:54:18.976: I/System.out(11754): Debugger has connected
01-31 23:54:18.976: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:19.177: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:19.377: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:19.577: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:19.778: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:19.978: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:20.179: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:20.379: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:20.580: I/System.out(11754): waiting for debugger to settle...
01-31 23:54:20.782: I/System.out(11754): debugger has settled (1370)
01-31 23:54:20.825: I/CarlifeApplication(11754): ********************开始*********************
01-31 23:54:20.827: I/CarlifeApplication(11754): e路行 启动...
01-31 23:54:20.831: I/SocketDataListen(11754): Socket数据监听启动...
01-31 23:54:20.837: I/CarlifeApplication(11754): 百度地图SDK初始化...
01-31 23:54:20.883: W/DeviceId(11754): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:20.883: W/DeviceId(11754): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:20.883: W/DeviceId(11754): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:20.897: I/BaiduApiAuth(11754): BaiduApiAuth SDK Version:1.0.20
01-31 23:54:20.910: I/CarlifeApplication(11754): 百度地图SDK初始化 完成
01-31 23:54:20.921: I/HwCust(11754): Constructor found for class android.app.HwCustHwWallpaperManagerImpl
01-31 23:54:21.034: I/SplashAct(11754): 检查权限...
01-31 23:54:21.071: I/System.out(11754): [ping, -c, 1, -w, 3, www.baidu.com]
01-31 23:54:21.071: I/System.out(11754): null
01-31 23:54:21.071: I/System.out(11754): null
01-31 23:54:21.071: I/System.out(11754): Calling by::className:com.rs.carlife.socket.SocketGlobalValues MethodName:isInternetNetwork
01-31 23:54:21.131: I/SplashAct(11754): 互联网是否畅通:true
01-31 23:54:21.190: E/HAL(11754): load: id=gralloc != hmi->id=gralloc
01-31 23:54:21.190: I/OpenGLRenderer(11754): Initialized EGL, version 1.4
01-31 23:54:21.227: I/SendBroadcastPermission(11754): action:permission check ok, mPermissionType:0
01-31 23:54:26.254: I/SplashAct(11754): 获取App配置信息
01-31 23:54:26.280: I/SplashAct(11754): 开始连接服务器...
01-31 23:54:26.449: I/Socket(11754): 检查连接状态开始...
01-31 23:54:26.453: I/Socket(11754): 连接完成...1次成功
01-31 23:54:26.918: I/SplashAct(11754): 自动登录成功!
01-31 23:54:27.073: I/MainActivity(11754): 注册 百度地图 SDK 广播监听者
01-31 23:54:27.075: I/MainActivity(11754): 百度TTS初始化...
01-31 23:54:27.183: I/MainActivity(11754): 百度语音唤醒初始化...
01-31 23:54:27.234: W/AsyncHttpRH(11754): Current thread has not called Looper.prepare(). Forcing synchronous mode.
01-31 23:54:27.267: I/MyWakeup(11754): wakeup params(反馈请带上此行日志):{"appid":"10696680","key":"5ulwf1xm5ybvEHORQHATYy5xCUg0B0Cw","secret":"X0NrvspmVXvQ0hyjstYRDyGssindkV6F","kws-file":"assets:\/\/\/WakeUp.bin"}
01-31 23:54:27.269: I/[BDASR_LOG] LogUtil(11754): Changing log level to 7
01-31 23:54:27.291: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:27.304: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:27.313: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:27.381: W/DeviceId(11754): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:27.381: W/DeviceId(11754): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:27.381: W/DeviceId(11754): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:27.411: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:27.871: W/ResponseProcessCookies(11754): Invalid cookie header: "Set-Cookie: BAIDUID=9FBC3B3A35445B34AF0696374669F58B:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2145916555; path=/; domain=.baidu.com; version=1". Unable to parse expires attribute: Thu
01-31 23:54:27.878: I/BaiduTTS(11754): TTS 验证通过,离线正式授权文件存在。
01-31 23:54:28.176: E/HAL(11859): load: id=gralloc != hmi->id=gralloc
01-31 23:54:28.202: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:28.212: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:28.219: I/CarlifeApplication(11859): ********************开始*********************
01-31 23:54:28.220: I/CarlifeApplication(11859): e路行 启动...
01-31 23:54:28.221: I/SocketDataListen(11859): Socket数据监听启动...
01-31 23:54:28.226: I/CarlifeApplication(11859): 百度地图SDK初始化...
01-31 23:54:28.272: W/DeviceId(11859): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:28.272: W/DeviceId(11859): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:28.272: W/DeviceId(11859): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
01-31 23:54:28.290: I/BaiduApiAuth(11859): BaiduApiAuth SDK Version:1.0.20
01-31 23:54:28.301: I/CarlifeApplication(11859): 百度地图SDK初始化 完成
01-31 23:54:28.318: I/SendBroadcastPermission(11859): action:permission check ok, mPermissionType:0
01-31 23:54:28.320: I/BaiduMapSDKReceiver(11754): 地图key 验证成功! 功能可以正常使用
01-31 23:54:28.335: I/baidu_location_service(11859): LocationAuthManager Authentication AUTHENTICATE_SUCC
01-31 23:54:28.376: I/art(11859): Rejecting re-init on previously-failed class java.lang.Class
01-31 23:54:28.376: I/art(11859): Rejecting re-init on previously-failed class java.lang.Class
01-31 23:54:28.377: I/art(11859): Rejecting re-init on previously-failed class java.lang.Class
01-31 23:54:28.377: I/art(11859): Rejecting re-init on previously-failed class java.lang.Class
01-31 23:54:28.377: I/art(11859): Rejecting re-init on previously-failed class java.lang.Class
01-31 23:54:28.407: I/BaiduTTS(11754): BaiDu TTS 初始化成功
01-31 23:54:28.477: I/DbServerHelper(11754): 取得服务器近12小时的报告点数据...
01-31 23:54:28.483: I/DbServerHelper(11754): 取得服务器 常用报告点 数据 开始...
01-31 23:54:28.730: I/System(11859): core_booster, getBoosterConfig = true
01-31 23:54:28.744: I/System(11859): core_booster, getBoosterConfig = true
01-31 23:54:30.458: I/SQLiteHelper(11754): 数据库打开成功
01-31 23:54:34.514: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:34.729: I/SqlServerConnTask(11754): 取得服务器近12小时的报告点数据 完成...
01-31 23:54:40.731: I/System(11754): core_booster, getBoosterConfig = true
01-31 23:54:41.205: I/SqlServerConnTask(11754): 取得服务器 常用报告点 数据 完成...

然后就图片

检查了所有的Lib、so、权限问题,都没有问题,只要去掉语音识别初始化,不要语音识别功能,debug就ok。如果要了语音识别,Debug就出现该问题,但直接运行没问题,也能唤醒和识别,是不是百度SDK用多了呢,有冲突?还是百度语音发出的SDK就是不能Debug,确实缺calss呢?还是我用的不对?

百度的技术人员呢?可以帮我解决下吗?太痛苦了,谢谢大神们!

0
#2卡农LLLL回复于2018-01

确定没load的class是deviceid吗?你这个错误感觉不是呢.

0
TOP
切换版块