def send_speech_message(speech):
    """ Publish JiboAction playback audio message """
    #print '\nsending speech message: %s' % speech
    print '\nsending speech message'
    msg = JiboAction()
    msg.do_sound_playback = True
    msg.wav_filename = speech
    pub_re.publish(msg)
def send_speech_motion_message(speech, motion):
    """ Publish JiboAction playback audio message """
    print '\nsending speech and motion message'
    msg = JiboAction()
    msg.do_sound_playback = True
    msg.wav_filename = speech
    msg.do_motion = True
    msg.motion = motion
    pub_re.publish(msg)