如何从alexa app中的play指令返回应用程序?

Rah*_*pta 6 php alexa alexa-skill alexa-skills-kit alexa-voice-service

我正在开发一个音频流的应用程序.如果我说alexa为这位艺术家播放歌曲,alexa正在播放所有歌曲.但是不是在聆听之间切换到另一位艺术家.Alexa正在为艺术家完成所有歌曲然后停止然后我需要再次启动应用程序以收听另一位艺术家的歌曲.我如何在这首歌之间呼唤另一位艺术家?

这是我对第一首歌的编码

$speech     = "playing songs of $artistName";

$card = '"card": {
              "type": "Simple",
              "title": "Play Audio",
              "content": ""
        }';
$response = '{
        "version" : "1.0",
        "response" : {
            "outputSpeech": {
              "type": "PlainText",
              "text": "'.$speech.'"
            },
            '.$card.',
            "directives": [
              {
                "type": "AudioPlayer.Play",
                "playBehavior": "REPLACE_ALL",
                "audioItem": {
                  "stream": {
                "token": "FirstSong",
                "url": "myUrl",
                "offsetInMilliseconds": 0
                  }
                }
              }
            ],
            "shouldEndSession" : true
        }
    }';

  echo $response;
Run Code Online (Sandbox Code Playgroud)

然后通过将playBehaviour替换为ENQUEUE将音频添加到其中.歌曲正在增加,每首歌曲都可以正常播放,但在任何时候,如果我说任何与我的应用程序相关的命令.. alexa没有响应,它实际上就像离开我的应用程序,因为我必须启动应用程序再次播放一首歌,让alexa与我的应用程序一起工作.