Hi, I’m trying to play an audio on my Alexa device but it’s not working. On the jovo debugger it works correctly and the audio is played but when the test on the real device does not work.
I created a project for Alexa AudioPlayer Skills with:
$ jovo new <directory> --template alexa-audioplayer
I set the credentials with my aws account, following: $ ask init
.
My project.js file is the following:
> // project.js
>
> module.exports = {
> alexaSkill: {
> nlu: 'alexa',
> manifest: {
> apis: {
> custom: {
> interfaces: [
> {
> type: 'AUDIO_PLAYER'
> }
> ]
> }
> }
> }
> },
> googleAction: {
> nlu: 'dialogflow',
> },
> endpoint: '${JOVO_WEBHOOK_URL}'
> };
I want to play the audio when the skill is invoked, like this:
//app.js
> LAUNCH() {
> const song = 'https://traffic.libsyn.com/voicebot/Jan_Konig_on_the_Jovo_Open_Source_Framework_for_Voice_App_Development_-_Voicebot_Podcast_Ep_56.mp3';
>
> if (this.isAlexaSkill()) {
> this.$alexaSkill.$audioPlayer
> .setOffsetInMilliseconds(0)
> .play(song, 'token');
> }
> this.tell('Play');
> },
>
after running jovo build
and jovo deploy
when test my skill in the real device does not start.
can someone help me please?