我在查找使用node.js处理Alexa音频播放器事件的简单示例时遇到问题。到目前为止,我只能使用以下命令使play指令起作用:
this.response.audioPlayerPlay('REPLACE_ALL', 'URL', 0);
this.emit(':responseReady');
如何停止播放音频?每当我尝试通过说“停止”在播放过程中触发StopIntent时,都会触发PauseIntent。我希望能够停止播放并结束会话,暂停播放并继续播放。我查看了GitHub上的示例,但发现它们没有很大帮助。
答案 0 :(得分:0)
this.response.audioPlayerStop(); //this part will stop the audio player from playing the current stream.