尝试创建alexa回声广播技能

时间:2019-07-19 05:52:23

标签: amazon-echo

因此,我遵循了这个示例https://www.hackster.io/balsimpson/create-an-alexa-radio-skill-in-5-minutes-6c2b97,并且在Alexa开发人员控制台中测试代码时,似乎总是会出错。

There was a problem with the requested skill's response

我需要一种技能来播放1个URL流,就是这样。

我想知道是否有人掌握了流音乐的技能?

在JSON编辑器(alexa开发控制台)中。

{
    "interactionModel": {
        "languageModel": {
            "invocationName": "radio",
            "intents": [
                {
                    "name": "AMAZON.CancelIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.HelpIntent",
                    "samples": [
                        "help"
                    ]
                },
                {
                    "name": "AMAZON.StopIntent",
                    "samples": [
                        "stop"
                    ]
                },
                {
                    "name": "AMAZON.RepeatIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.YesIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.NoIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.FallbackIntent",
                    "samples": [
                        "test"
                    ]
                },
                {
                    "name": "AMAZON.ResumeIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.PauseIntent",
                    "samples": []
                },
                {
                    "name": "PlayRadioIntent",
                    "slots": [
                        {
                            "name": "musicStation",
                            "type": "RadioStations"
                        }
                    ],
                    "samples": [
                        "play {musicStation} music",
                        "play some {musicStation}",
                        "play {musicStation}",
                        "{musicStation} music"
                    ]
                },
                {
                    "name": "AMAZON.NextIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.NavigateHomeIntent",
                    "samples": []
                }
            ],
            "types": [
                {
                    "name": "RadioStations",
                    "values": [
                        {
                            "name": {
                                "value": "blues"
                            }
                        },
                        {
                            "name": {
                                "value": "rock",
                                "synonyms": [
                                    "classic rock",
                                    "rock and roll"
                                ]
                            }
                        },
                        {
                            "name": {
                                "value": "jazz"
                            }
                        },
                        {
                            "name": {
                                "value": "folk"
                            }
                        },
                        {
                            "name": {
                                "value": "chill",
                                "synonyms": [
                                    "chill out",
                                    "chillout music",
                                    "chillout"
                                ]
                            }
                        },
                        {
                            "name": {
                                "value": "classical",
                                "synonyms": [
                                    "classical music"
                                ]
                            }
                        },
                        {
                            "name": {
                                "value": "meditate",
                                "synonyms": [
                                    "concentrate",
                                    "calming music",
                                    "calm",
                                    "meditation music",
                                    "meditation"
                                ]
                            }
                        },
                        {
                            "name": {
                                "value": "party",
                                "synonyms": [
                                    "ibiza",
                                    "party songs",
                                    "party music"
                                ]
                            }
                        }
                    ]
                }
            ]
        }
    }
}

作为终点https://DRN1.api.stdlib.com/tinkr-alexa-radio-skill@dev/

0 个答案:

没有答案