Last active
October 23, 2018 13:00
-
-
Save frivas/233b4c2152829813977b72108850264a to your computer and use it in GitHub Desktop.
LaunchRequestHandler. Medium Article. Creating an Alexa Skill Using Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LaunchRequestHandler(AbstractRequestHandler): | |
def can_handle(self, handler_input): | |
return is_request_type("LaunchRequest")(handler_input) | |
def handle(self, handler_input): | |
speechText = "<say-as interpret-as=\"interjection\">Hey Exploradores!</say-as>, espero estéis listos para una nueva aventura. ¿Cuántos objetos queréis buscar hoy?." | |
rePrompt = "<say-as interpret-as=\"interjection\">Venga exploradores!</say-as>. A la aventura, ¿Cuantos objetos queréis buscar hoy?" | |
return handler_input.response_builder.speak(speechText).ask(rePrompt).set_should_end_session(False).response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment