启动参数接受
发送参数(无)
接受参数
说明 :
参数 | 类型 | 必需 | 参数说明 |
answerTextPlay | Boolean | 否 | 默认:false;后期会使用 |
card | String | 否 | 默认:{}后期会使用 |
englishDomain | String | 是 | nlp配置的Domain; |
englishIntent | String | 是 | nlp配置的Intent; |
intent | String | 是 | nlp配置的Domain&Intent拼接串; |
nlpData | String | 是 | nlp完整数据信息 |
queryType | Int | 否 | 默认:1后期会使用 |
sid | String | 是 | 语音指令对应唯一ID |
skillData | String | 是 | 技能数据 |
slots | String | 是 | 槽位数据信息 |
soundAngle | Int | 是 | 声音角度 |
traceId | String | 是 | 追踪ID |
userText | String | 是 | 语音文本内容 |
id | Int | 是 | 唯一标志 |
spinId | String | 否 | 后期会使用 |
chainStartTime | String | 是 | 链路开始时间 |
示例
程序示例: public void onRobotMessage(@Nullable final String message) { Log.i("SHADOW_OPK", "client onRobotMessage 2: " + message); this.handler.post((Runnable)(new Runnable() { public final void run() { MainActivity var10000 = MainActivity.getInstance(); if (var10000 != null) { LogTools.info(message); Log.i("SHADOW_OPK", "client onRobotMessage获取内容: " + message); if(callback != null){ Log.i("SHADOW_OPK", "client onRobotMessage 5: " + message); callback.onResult(message); } } } })); } 数据示例: { "answerTextPlay": false, "card": "{}", "englishDomain": "demonstrate_app", "englishIntent": "open", "intent": "demonstrate_app&open", "nlpData": "{\"detail\":[{\"agent\":\"task\",\"semantics_flag\":1,\"query\":\"打开开发者的演示实例\",\"asrText\":\"打开开发者的演示实例\",\"source\":\"OrionRuleBasedGrammar\",\"intent\":\"open\",\"english_domain\":\"demonstrate_app\",\"debug_info\":{},\"slots\":{},\"cmd_dispatch_level\":\"1\",\"domain\":\"demonstrate_app\",\"skill_response\":{},\"sn\":\"d3849754-a838-4546-95fa-7214eb17bde6\",\"skill_nlu\":false,\"actions\":[],\"current_time\":\"2022-07-01 14:42:54\",\"nlpData\":{\"misc\":{\"app\":[{\"app_type\":0,\"name\":\"WorkFlow_mini(横屏)\",\"app_id\":\"system_a111fbbbb02ec018d4ad79d1d63c7222\",\"scene\":[{\"scene_id\":243025634000896,\"name\":\"Main\"}]},{\"app_type\":0,\"name\":\"餐厅小助手_mini\",\"app_id\":\"system_326e53bcf12ca7b1cfeaeee0d815fe57\",\"scene\":[{\"scene_id\":390870177546240,\"name\":\"cafeLeading\"},{\"scene_id\":390868860534784,\"name\":\"restaurantKit\"},{\"scene_id\":390869313519616,\"name\":\"cafeSolicitSetting\"},{\"scene_id\":390869800058880,\"name\":\"cafeWelcomeSetting\"}]}]}}}],\"misc\":{\"app\":[{\"app_type\":0,\"name\":\"WorkFlow_mini(横屏)\",\"app_id\":\"system_a111fbbbb02ec018d4ad79d1d63c7222\",\"scene\":[{\"scene_id\":243025634000896,\"name\":\"Main\"}]},{\"app_type\":0,\"name\":\"餐厅小助手_mini\",\"app_id\":\"system_326e53bcf12ca7b1cfeaeee0d815fe57\",\"scene\":[{\"scene_id\":390870177546240,\"name\":\"cafeLeading\"},{\"scene_id\":390868860534784,\"name\":\"restaurantKit\"},{\"scene_id\":390869313519616,\"name\":\"cafeSolicitSetting\"},{\"scene_id\":390869800058880,\"name\":\"cafeWelcomeSetting\"}]}]}}", "queryType": 1, "sid": "d3849754-a838-4546-95fa-7214eb17bde6", "skillData": "{}", "slots": "{}", "soundAngle": -1, "traceId": "d3849754a8384546", "userText": "打开开发者的演示实例", "id": 51, "spinId": "d3aae79a3f91a204", "chainStartTime": 1656657774377000 }