Skip to content

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

@rajeevs960

Description

@rajeevs960

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions