如何更改 Alexa 示例 nodejs 音频播放器项目中的 AudioPlayer 指令 "play the audio,"?
How do I change the AudioPlayer directive, "play the audio," in the Alexa sample nodejs audio player project?
我是 Alexa 技能的新手,目前正在构建此处提供的示例音频播放器技能之一:
https://github.com/alexa/skill-sample-nodejs-audio-player
我正在尝试更改 Alexa 监听的内容以开始播客 ("play the audio"),但我无法在代码中找到它。
var message = 'Welcome to the AWS Podcast. You can say, play the audio to begin the podcast.';
var reprompt = 'You can say, play the audio, to begin.';
有人可以指出我在哪里配置它吗?
在这个 link https://github.com/alexa/skill-sample-nodejs-audio-player/blob/mainline/js/stateHandlers.js 你看到了吗 this.response.speak(theMessage)
这就是函数的作用。
您应该可以根据需要更改参数 theMessage
。
我是 Alexa 技能的新手,目前正在构建此处提供的示例音频播放器技能之一:
https://github.com/alexa/skill-sample-nodejs-audio-player
我正在尝试更改 Alexa 监听的内容以开始播客 ("play the audio"),但我无法在代码中找到它。
var message = 'Welcome to the AWS Podcast. You can say, play the audio to begin the podcast.';
var reprompt = 'You can say, play the audio, to begin.';
有人可以指出我在哪里配置它吗?
在这个 link https://github.com/alexa/skill-sample-nodejs-audio-player/blob/mainline/js/stateHandlers.js 你看到了吗 this.response.speak(theMessage)
这就是函数的作用。
您应该可以根据需要更改参数 theMessage
。