question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting different response in alexa developer service simulator and in alexa app server testing utility

See original GitHub issue

Hi ,

I am getting different responses in alexa developer service simulator and in your testing utility.

Response in alexa app server testing utility

{
  "version": "1.0",
  "response": {
    "directives": [
      {
        "type": "AudioPlayer.Play",
        "playBehavior": "REPLACE_ALL",
        "audioItem": {
          "stream": {
            "url": "https://songurl",
            "token": "123456",
            "offsetInMilliseconds": 0
          }
        }
      }
    ],
    "shouldEndSession": true,
    "outputSpeech": {
      "type": "SSML",
      "ssml": "<speak>playing the song shape of you from app</speak>"
    },
    "card": {
      "type": "Simple",
      "title": "My Cool Card",
      "content": "playing the song shape of you from app"
    }
  },
  "sessionAttributes": {}
}

Response in alexa developer service simulator:

{
  "version": "1.0",
  "response": {
    "outputSpeech": {
      "ssml": "<speak>playing the song shape of you from app</speak>",
      "type": "SSML"
    },
    "card": {
      "content": "playing the song shape of you from app",
      "title": "My Cool Card"
    },
    "speechletResponse": {
      "outputSpeech": {
        "ssml": "<speak>playing the song shape of you from app</speak>"
      },
      "card": {
        "content": "playing the song shape of you from app",
        "title": "My Cool Card"
      },
      "directives": [
        {
          "playBehavior": "REPLACE_ALL",
          "audioItem": {
            "stream": {
              "token": "123456",
              "url": "https://songurl",
              "offsetInMilliseconds": 0
            }
          }
        },
        {
          "template": {
            "title": "My Cool Card",
            "textContent": {
              "primaryText": {
                "richText": "<font size=\"7\">playing the song shape of you from app</font>"
              }
            },
            "backButtonBehavior": "HIDDEN"
          }
        }
      ],
      "shouldEndSession": true
    }
  },
  "sessionAttributes": {}
}  

why the “type”: “AudioPlayer.Play” is not displaying in service simulator. The song is not playing. Only the text is saying by the device. And why “speechletResponse” object is displaying in service simulator. Am i doing anything wrong?. Please let me know the solution. I am facing the issue.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rajeevs960commented, Dec 4, 2017

I think there is a problem in service simulator of amazon developer site. Now i am able to play a song in echo dot. But still the service simulator doesn’t show the proper response type for directives and card also.

0reactions
rajeevs960commented, Dec 1, 2017

And even for link account the card object is showing empty in service simulator of amazon developer site.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test and Debug Your Custom Skill | Alexa Skills Kit
Follow these recommendations to test custom skills. Before you start testing, complete the steps to verify the minimum configuration and deploy your skill....
Read more >
Programming Alexa Skills for the Amazon Echo
In this article, you'll learn how Alexa works, and how to develop, deploy, and test your own Alexa Skill in C#, and how...
Read more >
GitHub - alexa-js/alexa-app-server
Contribute to alexa-js/alexa-app-server development by creating an ... This allows you to test your skill using a web browser and view the responses, ......
Read more >
Alexa Skills Tutorials - Amazon Alexa Skill Building Tutorials ...
If you're interested, simply add console.log(process.env) in your LaunchRequestHandler's handle() method. Then, test your skill with the Test tab of the Alexa ......
Read more >
Programming Alexa Skills | Beginner tutorial - IONOS
To allow Alexa voice service users to develop their own Alexa Skills, Amazon provides the Alexa Skills Kit through the Alexa Developer Console ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found