Beispiel #1
0
    recorder(db)
elif choice == 2:
    fileOk = False
    while not fileOk:
        #On choisit le dossier à afficher
        print "Voici la liste des mots a etudier : "
        dirList = db.printDirFiles("waves/")
        dirChoice = -1
        while( not dirChoice in range(len(dirList)) ):
            try:
                dirChoice = int( input( "Choisissez un fichier a traiter et entrez son numero : " ) )
            except NameError:
                print "Ceci n'est pas un nombre !"
        print "Dossier choisi : ", dirList[dirChoice]
        fileOk = True
        filesList = db.printFilesList(dirList[dirChoice])
        for f in filesList:
            print f
            #Réalisation de l'analyse
            pass
elif choice == 3:
    choice3 = -1
    while( not choice3 in range(1,2) ):
        try:
            choice3 = int(input("Que voulez-vous faire ?\n1-Supprimer un fichier\n2-Supprimer un wav\n"))
        except NameError:
            print "Ceci n'est pas un nombre !"
    if choice3 == 1:
        print "Fichiers : "
        filesList = db.printDirFiles()
        dirName = "storage/"