alexa / alexa-skills-kit-sdk-for-nodejs

The Alexa Skills Kit SDK for Node.js helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
Apache License 2.0
3.12k stars 736 forks source link

No speech after :tellWithLinkAccountCard #172

Closed ChrisSchneider closed 7 years ago

ChrisSchneider commented 7 years ago

I'm fighting with an issue where an Alexa skill requires account linking, but the user skips this and then interacts with the skill. As the account is not linked, I emit :tellWithLinkAccountCard as documented by Amazon. However, the text is not spoken by Alexa. This issue is incredible frustrating to me, as the skill was repeatedly rejected by Amazon because of this bug!

Code:

this.emit(':tellWithLinkAccountCard', 'Please link your account to use this skill properly')

Response returned to Alexa by skills kit SDK:

{ version: '1.0',
  response: 
   { shouldEndSession: true,
     outputSpeech: 
      { type: 'SSML',
        ssml: '<speak> Please link your account to use this skill properly </speak>' },
     card: { type: 'LinkAccount' } },
  sessionAttributes: { ... }
}

Response shown in Service Simulator:

{
  "version": "1.0",
  "response": {
    "card": {},
    "speechletResponse": {
      "card": {},
      "shouldEndSession": true
    }
  },
  "sessionAttributes": { ... }
}

I'm using the latest skills kit SDK.

ghost commented 7 years ago

Hey @ChrisSchneider, Have you tested this on a device? It appears to be working just fine!

I get the speech "Please link your account to use this skill properly"

ghost commented 7 years ago

Closing as i'm not able to reproduce.

ChrisSchneider commented 7 years ago

Sorry for the late response, I was out of office the last couple of days. It seems to be fixed now, I cannot reproduce the issue either.

ghost commented 7 years ago

Great to hear! @ChrisSchneider 👍 Wish you the best through the cert process!