跳到内容 跳到主导航 跳到页脚

启动参数接受

发送参数(无)

接受参数

        说明 :

参数类型必需参数说明
answerTextPlayBoolean默认:false;后期会使用
cardString默认:{}后期会使用
englishDomainStringnlp配置的Domain;
englishIntentStringnlp配置的Intent;
intentStringnlp配置的Domain&Intent拼接串;
nlpDataStringnlp完整数据信息
queryTypeInt默认:1后期会使用
sidString语音指令对应唯一ID
skillDataString技能数据
slotsString槽位数据信息
soundAngleInt声音角度
traceIdString追踪ID
userTextString语音文本内容
idInt唯一标志
spinIdString后期会使用
chainStartTimeString链路开始时间

示例

程序示例:
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
}

这篇文章是否有帮助?

0