Cita:
Código: Warning (from warnings module):
File "D:\Desktop\Nuevo documento de texto.py", line 8
if spoken == "Música":
UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
File "D:\Desktop\Nuevo documento de texto.py", line 8
if spoken == "Música":
UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Código Python:
Ver original
import speech import os drectorio_musica = '"D:\Desktop\Isix\Música\"' ficheros = os.listdir('D:\Desktop\Isix\Música') hablar = speech.say("Hola") spoken = speech.input('Ejecutar orden:') print spoken if spoken == "Música": cancion = speech.say("¿Que canción quieres reproducir?")
Un saludo