def handle(self, handler_input): # type: (HandlerInput) -> Response logger.info("In PauseCommandHandler") return util.stop(text=None, response_builder=handler_input.response_builder)
def handle(self, handler_input): # type: (HandlerInput) -> Response logger.info("In CancelOrStopIntentHandler") # handler_input.response_builder.set_should_end_session(True) return util.stop("Goodbye", handler_input.response_builder)
def handle(self, handler_input): # type: (HandlerInput) -> Response logger.info("In PlaybackFailedHandler") request = handler_input.request_envelope.request logger.info("Playback failed: {}".format(request.error)) return util.stop("Goodbye", handler_input.response_builder)
def handle(self, handler_input): # type: (HandlerInput) -> Response logger.info("In CancelOrStopIntentHandler") _ = handler_input.attributes_manager.request_attributes["_"] return util.stop(_(data.STOP_MSG), handler_input.response_builder)
def handle(self, handler_input): return util.stop('Stoping audio...', handler_input.response_builder)
def handle(self, handler_input): # type: (HandlerInput) -> Response logger.info("In CancelOrStopIntentHandler") return util.stop(random.choice(data.STOP_MSG), handler_input.response_builder)
def cancel_and_stop_intent_handler(handler_input): """Single handler for Cancel and Stop Intent.""" speech_text = "Goodbye" return util.stop(speech_text, handler_input.response_builder)
def pause_request_handler(handler_input): speech_text = 'Pausing sermon' return util.stop(speech_text, handler_input.response_builder)