在 Alexa 上创建广播电台

Create a Radio Station on Alexa

我是 Alexa 技能的新手。我刚刚学习了一些教程并对它们进行了一些定制。

我遵循了 this 教程,效果很好。

但是,我正在收听我所在州的本地广播电台 (Antenne Bayern),该电台具有 Alexa 技能,我想知道我是否可以做类似的事情。

在我链接的教程中,你可以播放 "podcast" 并且在那里,你可以播放明信片的不同歌曲。但是现在,我希望当您使用 "Alexa, start AudioPlayer" 技能时,您有两个选择,"live radio" 或播客列表。

如果你决定直播广播,alexa 开始流式传输直播,如果你决定播客列表,那么你必须决定哪个播客。我还想,您必须决定播客中的歌曲(如 AudioPlayer 教程中所示)

我的意思是,我想要这样的东西:

{
    "Live Radio": play_live_transmission(),
    "Podcast List": {
        "First Podcast": {
            "First Song": play_song_1(),
            "Second Song": play_song_2(),
        },
        "Second Podcast": {
            "First Song": play_song_3(),
            "Second Song": play_song_4(),
        }
    }
}

我知道怎么播放歌曲,但我不知道技能应该如何配置才能有这样的结构。

我正在阅读 this post,我注意到他使用 "GetStatus"、"GetElevators" 和 "GetTrainTimes" 以及里面的列表,以及 [=39= 中的所有内容].

也许我应该做那样的事情。但我不知道。

也许有人试图做类似的事情并且可以帮助我。也许是文档或想法我应该如何编写技能。

我是用flask-ask. I create an intent with a list of emissions. Then, when the user says "Alexa, start Radio with some emission" it searches the links of the emission. With this tutorial做的,做起来很容易。