alexa技能无法识别广告位

时间:2019-05-03 14:10:13

标签: alexa

我目前正在建立我的第一个Alexa技能。 这是我添加的唯一意图:

{
    "name": "MyGame",
    "slots": [
        {
            "name": "Zahl",
            "type": "AMAZON.NUMBER"
        }
    ],
    "samples": [
        "Wie ist der Aufbau für Test mit {Zahl} Spieler"
    ]
}

我使用https://skillinator.io/创建了lambda函数,并更改了我意图输出广告位的响应:

'MyGame': function () {
    speechOutput = '';

    //any intent slot variables are listed here for convenience
    let ZahlSlotRaw = this.event.request.intent.slots.Zahl.value;
    console.log(ZahlSlotRaw);
    let ZahlSlot = resolveCanonical(this.event.request.intent.slots.Zahl);
    console.log(ZahlSlot);
    //Your custom intent handling goes here
    speechOutput = "slot: ${ZahlSlot}, raw:${ZahlSlotRaw}";
    this.emit(":ask", speechOutput, speechOutput);
},

现在,当我在Alexa开发人员控制台中测试该技能并询问wie ist der aufbau für test mit drei spieler?时,我会得到响应slot: , raw:

我在做什么错了?

0 个答案:

没有答案