def send_confirm_response()

in locator/locator.py [0:0]


    def send_confirm_response(self, **kwargs):
        if 'AudioContent' in kwargs:
            data = kwargs.get('AudioContent')
            resp = self.lex.content(data)

        if 'TextResponse' in kwargs:
            text_resp = kwargs.get('TextResponse')
            resp = self.lex.text(text_resp)

        if 'x-amz-lex-message' in resp:
            if 'confirmed' in resp['x-amz-lex-message']:
                return 'Confirmed'

            if 'Sorry, I could not understand.' in resp['x-amz-lex-message']:
                return 'NotUnderstood'