def _play_next_msg_part(self): s, lv, rv = self._queue.pop(0) if is_text(s): tts.speak(s) else: self._play(s, lv, rv)
def say(txt): tts.speak(unicode(txt)) while tts.is_speaking(): time.sleep(.01)
def say(txt): tts.speak(txt) while tts.is_speaking(): time.sleep(0.01)