alexa / alexa-skills-kit-sdk-for-java

The Alexa Skills Kit SDK for Java helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
http://developer.amazon.com/ask
Apache License 2.0
817 stars 747 forks source link

Do not send empty SSML in reprompt if passed text is null or empty #298

Closed kkocel closed 2 years ago

kkocel commented 2 years ago

Description

Due to the fact that APLA reprompt was introduced there is no need to include outputSpeech - especially when it's empty or null.

Motivation and Context

Currently When calling withReprompt with empty or null text, outputSpeech gets populated with empty <speak></speak>. It causes validation errors (like The skill should not respond to intent requests with empty text or SSML in reprompt while keeping the skill session open.) and it's redundant when using APLA reprompt as directive parameter.

Types of changes

Checklist

License