if __name__ == "__main__":
// Get features and labels
r = os.listdir("data/")r.sort()
features, labels = parse_audio_files("data", r)
np.save("feat.npy", features)
np.save("label.npy", labels)
// Predict new
r = os.listdir("predict/")r.sort()
features, filenames = parse_predict_files("predict")
np.save("predict_feat.npy", features)
np.save("predict_filenames.npy", filenames)