我使用的服务是:语音唤醒
调用的接口是:
eventManager.send("wp.start", JSONObject(params).toString(), null, 0, 0)参数设置情况:
eventManager= EventManagerFactory.create(context, "wp")
eventManager.registerListener(this)
// 3) 通知唤醒管理器, 启动唤醒功能
params.put("kws-file", "assets:///haloulili.bin")
开发平台和机型:华为荣耀3x
SDK版本号:17
代码或日志截图(上传截图能帮助您更快解决问题):
07-08 21:54:08.556 342-360/cn.sz.cyrus.kotlintest I/AuthEasrHelper: GetLicense getLicenseRet -101, licensePath: /data/data/cn.sz.cyrus.kotlintest/files/bds-easr-license.lic
07-08 21:54:08.556 342-360/cn.sz.cyrus.kotlintest I/AuthEasrHelper: cuid: 6D6045C73671C4532AD5FDC2F3CA179B|0, stat: eyJzY3JlZW4iOiI3MjAqMTI4MCIsIm9zIjoiQW5kcm9pZCIsInBsYXRmb3JtIjoiQW5kcm9pZCZI
VUFXRUkgSE4zLVUwMSY0LjIuMiYxNyYxIiwiYXBwX3NpZ25hdHVyZSI6ImRmNTQwNGI5N2I2ZDFh
MWM0YjlmYWQ4ZjUxYTBhZTgwIiwic2RrX3ZlcnNpb24iOiIyLjEuMjEuMjAxNzAxMTJfM2FkMTRk
ZV9iZXRhIiwibmV0X3R5cGUiOjEsImFwcF9uYW1lIjoiY24uc3ouY3lydXMua290bGludGVzdCIs
Indpc2VfY3VpZCI6IjZENjA0NUM3MzY3MUM0NTMyQUQ1RkRDMkYzQ0ExNzlCfDAifQ==
07-08 21:54:08.569 342-360/cn.sz.cyrus.kotlintest W/System.err: java.lang.Exception: WakeUpInitial=-1
07-08 21:54:08.569 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventManagerWp.doWpStart(EventManagerWp.java:147)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventManagerWp.send(EventManagerWp.java:57)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.reflect.Method.invoke(Method.java:511)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventContext$SmartLogger$1.invoke(EventContext.java:288)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at $Proxy0.send(Native Method)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at cn.sz.cyrus.wemz.RobotCenter.startWakeUp(RobotCenter.kt:65)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at cn.sz.cyrus.wemz.RobotCenter$1.run(RobotCenter.kt:36)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.Thread.run(Thread.java:856)
复现步骤、现象及其他描述:语音识别和语音合成都可以正常使用,但是语音唤醒在初始化并调用start的时候出现以上问题
CyrusCeasar:
我使用的服务是:语音唤醒
调用的接口是:
eventManager.send("wp.start", JSONObject(params).toString(), null, 0, 0)参数设置情况:
eventManager= EventManagerFactory.create(context, "wp")
eventManager.registerListener(this)
// 3) 通知唤醒管理器, 启动唤醒功能
params.put("kws-file", "assets:///haloulili.bin")
开发平台和机型:华为荣耀3x
SDK版本号:17
代码或日志截图(上传截图能帮助您更快解决问题):
07-08 21:54:08.556 342-360/cn.sz.cyrus.kotlintest I/AuthEasrHelper: GetLicense getLicenseRet -101, licensePath: /data/data/cn.sz.cyrus.kotlintest/files/bds-easr-license.lic
07-08 21:54:08.556 342-360/cn.sz.cyrus.kotlintest I/AuthEasrHelper: cuid: 6D6045C73671C4532AD5FDC2F3CA179B|0, stat: eyJzY3JlZW4iOiI3MjAqMTI4MCIsIm9zIjoiQW5kcm9pZCIsInBsYXRmb3JtIjoiQW5kcm9pZCZI
VUFXRUkgSE4zLVUwMSY0LjIuMiYxNyYxIiwiYXBwX3NpZ25hdHVyZSI6ImRmNTQwNGI5N2I2ZDFh
MWM0YjlmYWQ4ZjUxYTBhZTgwIiwic2RrX3ZlcnNpb24iOiIyLjEuMjEuMjAxNzAxMTJfM2FkMTRk
ZV9iZXRhIiwibmV0X3R5cGUiOjEsImFwcF9uYW1lIjoiY24uc3ouY3lydXMua290bGludGVzdCIs
Indpc2VfY3VpZCI6IjZENjA0NUM3MzY3MUM0NTMyQUQ1RkRDMkYzQ0ExNzlCfDAifQ==
07-08 21:54:08.569 342-360/cn.sz.cyrus.kotlintest W/System.err: java.lang.Exception: WakeUpInitial=-1
07-08 21:54:08.569 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventManagerWp.doWpStart(EventManagerWp.java:147)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventManagerWp.send(EventManagerWp.java:57)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.reflect.Method.invoke(Method.java:511)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventContext$SmartLogger$1.invoke(EventContext.java:288)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at $Proxy0.send(Native Method)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at cn.sz.cyrus.wemz.RobotCenter.startWakeUp(RobotCenter.kt:65)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at cn.sz.cyrus.wemz.RobotCenter$1.run(RobotCenter.kt:36)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.Thread.run(Thread.java:856)
复现步骤、现象及其他描述:语音识别和语音合成都可以正常使用,但是语音唤醒在初始化并调用start的时候出现以上问题
回复CyrusCeasar:
请您测试下我们的2.1版本的demo是否有问题
CyrusCeasar:
我使用的服务是:语音唤醒
调用的接口是:
eventManager.send("wp.start", JSONObject(params).toString(), null, 0, 0)参数设置情况:
eventManager= EventManagerFactory.create(context, "wp")
eventManager.registerListener(this)
// 3) 通知唤醒管理器, 启动唤醒功能
params.put("kws-file", "assets:///haloulili.bin")
开发平台和机型:华为荣耀3x
SDK版本号:17
代码或日志截图(上传截图能帮助您更快解决问题):
07-08 21:54:08.556 342-360/cn.sz.cyrus.kotlintest I/AuthEasrHelper: GetLicense getLicenseRet -101, licensePath: /data/data/cn.sz.cyrus.kotlintest/files/bds-easr-license.lic
07-08 21:54:08.556 342-360/cn.sz.cyrus.kotlintest I/AuthEasrHelper: cuid: 6D6045C73671C4532AD5FDC2F3CA179B|0, stat: eyJzY3JlZW4iOiI3MjAqMTI4MCIsIm9zIjoiQW5kcm9pZCIsInBsYXRmb3JtIjoiQW5kcm9pZCZI
VUFXRUkgSE4zLVUwMSY0LjIuMiYxNyYxIiwiYXBwX3NpZ25hdHVyZSI6ImRmNTQwNGI5N2I2ZDFh
MWM0YjlmYWQ4ZjUxYTBhZTgwIiwic2RrX3ZlcnNpb24iOiIyLjEuMjEuMjAxNzAxMTJfM2FkMTRk
ZV9iZXRhIiwibmV0X3R5cGUiOjEsImFwcF9uYW1lIjoiY24uc3ouY3lydXMua290bGludGVzdCIs
Indpc2VfY3VpZCI6IjZENjA0NUM3MzY3MUM0NTMyQUQ1RkRDMkYzQ0ExNzlCfDAifQ==
07-08 21:54:08.569 342-360/cn.sz.cyrus.kotlintest W/System.err: java.lang.Exception: WakeUpInitial=-1
07-08 21:54:08.569 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventManagerWp.doWpStart(EventManagerWp.java:147)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventManagerWp.send(EventManagerWp.java:57)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.reflect.Method.invoke(Method.java:511)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at com.baidu.speech.EventContext$SmartLogger$1.invoke(EventContext.java:288)
07-08 21:54:08.573 342-360/cn.sz.cyrus.kotlintest W/System.err: at $Proxy0.send(Native Method)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at cn.sz.cyrus.wemz.RobotCenter.startWakeUp(RobotCenter.kt:65)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at cn.sz.cyrus.wemz.RobotCenter$1.run(RobotCenter.kt:36)
07-08 21:54:08.576 342-360/cn.sz.cyrus.kotlintest W/System.err: at java.lang.Thread.run(Thread.java:856)
复现步骤、现象及其他描述:语音识别和语音合成都可以正常使用,但是语音唤醒在初始化并调用start的时候出现以上问题
回复CyrusCeasar:
请您测试下我们的2.1版本的demo是否有问题