CODIGO:
Código Python:
Ver original
import android import threading import time def pregunta(): while 1: droid = android.Android() resultado = droid.recognizeSpeech("Pregunta a Isix",None,None) return t = threading.Thread(target=pregunta) t.start() while 1: if resultado == "Activar": menu() break else: none def menu(): droid = android.Android() print "vaaaa"
Un saludo!
