Firefly开源社区

打印 上一主题 下一主题

[Linux] 3308 dueros dcs sdk如何调试

25

积分

0

威望

0

贡献

技术小白

积分
25

3308 dueros dcs sdk如何调试

发表于 2018-12-24 15:26:26      浏览:4692 | 回复:3        打印      只看该作者   [复制链接] 楼主
请教3308 dueros dcs sdk如何调试,修改Client_Id   “开启技能调试模式” 无响应   
ApplicationManager有 onReceivedDirective可获取到Directive信息
如何能获取到技能信息
--___dueros_dcs_v1_boundary___
Content-Disposition: form-data; name="metadata"
Content-Type: application/json; charset=utf-8

{
  "debug": {
    "bot": {
      "id": "0cf69890-8341-849e-c9d9-835fe171c68a",
      "request": {
        "version": "v2.0",
        "session": {
          "new": false,
          "sessionId": "c76dca4d-128a-4250-8e06-ad3754fd18b1",
          "attributes": []
        },
        "context": {
          "System": {
            "user": {
              "userId": "415452396",
              "accessToken": "21.a514c2d44f33a49f4c855c2e2563b03e.2592000.1548213606.269536270-14638257",
              "userInfo": {
                "account": []
              }
            },
            "application": {
              "applicationId": "0cf69890-8341-849e-c9d9-835fe171c68a"
            },
            "device": {
              "deviceId": "9104eb27a00a147adab8d491e3cf7f1b",
              "supportedInterfaces": {
                "VoiceInput": [],
                "VoiceOutput": [],
                "AudioPlayer": []
              },
              "TVControl": {
                "controlType": "DCSControl",
                "controlStatus": 0
              }
            },
            "apiAccessToken": "tTjGz/QgOmo6Pz3mxwmJzBAIwHvD4cV2MGKdOv7rBlXVitNYtCm+zPrzOTEt/gGuxLpXiJsVQN/mWRwxSZwThO+xEdfo+MLcDT8uqxrc4mcLb+eLY0B5Fncn1SD5LdmNxPIG32Q4JRYZUTbhBrKuYtNmIj8OA1XZyXJ16Stow4cgs90o7WhNu9LjeqFToc3lZX7mpbMS0+gxAPJOkppslc7kUzCrqWO4TyJgJnIL8LxSnGKZzj8G2zpqjrpQWQc51x58dAacrhSnzuk+Q79CGQr19PxkAq5juu56UDzbDuybBSMgUBIVQDf7+xFvp1GO4CYikPlfPkKPjH3yQPRsTOEg531dXTGM05/3uPgiYFIJTS2TrHYXHlIvtsMkPxocgSz5BLMg47yMTL9IOuiXwA==",
            "apiEndPoint": "https://xiaodu.baidu.com",
            "avaliableApplicationIds": [
              "doudi_server",
              "phone",
              "aries_general",
              "ai.dueros.bot.alarm",
              "duer_weather",
              "sac",
              "restaurant_bot",
              "o2o_satisfy",
              "rent_car",
              "travel_server",
              "recharge",
              "online_shopping",
              "hotel",
              "baojie",
              "nba_search",
              "sysprofile_service",
              "audio_music",
              "ai.dueros.bot.timer",
              "audio_unicast",
              "audio_live",
              "ai.dueros.bot.vocal_joke",
              "ai.dueros.bot.smarthome",
              "speaker_hardware",
              "audio_news"
            ]
          },
          "Screen": {
            "token": "e5eb0aa4-9ad0-4c5f-855a-c9be460a83da",
            "card": {
              "content": "请问你想要做什么呢?",
              "url": "",
              "anchorText": "",
              "cueWords": [
                "请问你想要做什么呢?"
              ],
              "type": "txt",
              "token": "e5eb0aa4-9ad0-4c5f-855a-c9be460a83da"
            }
          }
        },
        "request": {
          "query": {
            "type": "TEXT",
            "original": "空调调整到12度"
          },
          "dialogState": "COMPLETED",
          "intents": [
            {
              "name": "device_command",
              "confirmationStatus": "NONE",
              "slots": {
                "device": {
                  "name": "device",
                  "value": "AIR_CONDITION",
                  "values": [
                    "AIR_CONDITION"
                  ],
                  "confirmationStatus": "NONE"
                },
                "temprature": {
                  "name": "temprature",
                  "value": "13",
                  "values": [
                    "13"
                  ],
                  "confirmationStatus": "NONE"
                },
                "command": {
                  "name": "command",
                  "value": "set",
                  "values": [
                    "set"
                  ],
                  "confirmationStatus": "NONE"
                }
              }
            }
          ],
          "queryInfo": [],
          "type": "IntentRequest",
          "requestId": "eef4ba0e727e4d12987b78009676abec_DCSfdei7680qpt5yq_0#1_0",
          "timestamp": "1545635865",
          "dialogRequestId": "ccda19bf-4f3d-44fc-972c-d7d7b08190a2"
        }
      },
      "response": {
        "context": {
          "intent": {
            "name": "device_command",
            "confirmationStatus": "NONE",
            "slots": {
              "device": {
                "name": "device",
                "value": "AIR_CONDITION",
                "confirmationStatus": "NONE",
                "score": 0,
                "values": [
                  "AIR_CONDITION"
                ]
              },
              "temprature": {
                "name": "temprature",
                "value": "13",
                "confirmationStatus": "NONE",
                "score": 0,
                "values": [
                  "13"
                ]
              },
              "command": {
                "name": "command",
                "value": "set",
                "confirmationStatus": "NONE",
                "score": 0,
                "values": [
                  "set"
                ]
              }
            },
            "score": 0
          },
          "afterSearchScore": 1,
          "expectResponse": []
        },
        "session": {
          "attributes": []
        },
        "response": {
          "needDetermine": false,
          "fallBack": false,
          "outputSpeech": {
            "type": "PlainText",
            "text": "空调已经调整到13度",
            "ssml": ""
          },
          "reprompt": {
            "outputSpeech": {
              "type": "PlainText",
              "text": "空调已经调整到13度",
              "ssml": ""
            }
          },
          "resource": {
            "entities": null
          },
          "card": {
            "type": "txt",
            "token": "a81e77d9-9fe4-458f-ba9b-0bd61c49ee69",
            "content": "空调已经调整到13度",
            "url": "",
            "anchorText": "",
            "cueWords": [
              "空调已经调整到13度"
            ]
          },
          "directives": [],
          "shouldEndSession": false,
          "expectSpeech": false
        },
        "version": "2.0"
      },
      "nlu": {
        "name": "device_command",
        "confirmationStatus": "NONE",
        "slots": {
          "device": {
            "name": "device",
            "value": "AIR_CONDITION",
            "values": [
              "AIR_CONDITION"
            ],
            "confirmationStatus": "NONE"
          },
          "temprature": {
            "name": "temprature",
            "value": "13",
            "values": [
              "13"
            ],
            "confirmationStatus": "NONE"
          },
          "command": {
            "name": "command",
            "value": "set",
            "values": [
              "set"
            ],
            "confirmationStatus": "NONE"
          }
        },
        "dbp_info": {
          "dbp_nlu_debug_info": ""
        }
      },
      "output_speech": {
        "type": "PlainText",
        "text": "空调已经调整到13度"
      },
      "response_header": "{\"Connection\":\" close\",\"Content-Length\":\" 994\",\"Server\":\" \"}"
    }
  }
}
--___dueros_dcs_v1_boundary___--
回复

使用道具 举报

274

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
274
发表于 2018-12-25 09:28:58        只看该作者  沙发
是不是你的技能id填错了?
回复

使用道具 举报

18

积分

0

威望

0

贡献

技术小白

积分
18
发表于 2019-12-27 14:49:32        只看该作者  板凳
你好,我也是再用3308,为啥我在授权dueros时,总是出现redirect_uri_dismatch呢?这个redirect_uri在哪里配置呢?谢谢
回复

使用道具 举报

发表于 2019-12-31 09:24:23        只看该作者  地板
1. 由于SDK自带的百度语音授权到期,百度语音交互已不支持;
2. 如果是自己申请了百度语音授权,最好查看百度语音相关的技术文档,移植到RK3308上。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表