我想知道是谁在和我的经纪人互动。
例如,我读到Alexa应该能够检测到不同的用户。谷歌主页的广告也让我觉得它应该检测到谁在说话。那我怎么知道是谁在说话呢?
在松懈的情况下,这似乎更容易,因为它是众所周知的谁在写作。但是,我看不到当前用户是谁。
发布于 2016-12-20 07:34:53
我了解了如何检测松弛中的用户:如果您实现了这个钩子,您将得到这个示例json:
{
"id": "f7912345-e21c-450f-a8ca-d01e38012345",
"timestamp": "2016-12-20T06:53:51.071Z",
"result": {
"source": "agent",
"resolvedQuery": "echo hallo welt",
"speech": "",
"action": "",
"actionIncomplete": false,
"parameters": {
"myInput": "hallo welt"
},
"contexts": [{
"name": "generic",
"parameters": {
"slack_user_id": "U0AT12345",
"myInput": "hallo welt",
"slack_channel": "D3DR12345",
"myInput.original": "hallo welt"
},
"lifespan": 4
}],
"metadata": {
"intentId": "06212345-06a0-40fe-bbeb-9189db412345",
"webhookUsed": "true",
"webhookForSlotFillingUsed": "false",
"intentName": "Response"
},
"fulfillment": {
"speech": "",
"messages": [{
"type": 0,
"speech": ""
}]
},
"score": 0.75
},
"status": {
"code": 200,
"errorType": "success"
},
"sessionId": "10612345-c681-11e6-af08-875120912345",
"originalRequest": {
"source": "slack_testbot",
"data": {
"channel": "D3DR12345",
"match": ["echo hallo welt"],
"text": "echo hallo welt",
"team": "T04H12345",
"type": "message",
"event": "direct_message",
"user": "U0AT12345",
"ts": "1482216830.000005"
}
}
}因此,在出现松弛的情况下,您可以访问结果->上下文->参数-> slack _user_id。
发布于 2016-12-19 20:10:06
Google (至少目前)没有办法处理同一设备上的多个用户。
发布于 2017-05-05 15:06:22
Google不断改进(甚至消除了我在最近更新时遇到的开发障碍)。现在可以训练它知道你的声音和别人的声音。
https://stackoverflow.com/questions/41230056
复制相似问题