Actualiser src/tadam.py

correction oubli déclaration variable time dans chunk
This commit is contained in:
babakounine 2024-01-08 13:35:11 +01:00
parent 31d6ac7c36
commit 772108c218

View File

@ -94,6 +94,7 @@ def chunk(outfolder, length):
for file in os.listdir(outfolder): for file in os.listdir(outfolder):
infile = os.path.join(outfolder, file) infile = os.path.join(outfolder, file)
extension = infile.split(".")[-1] extension = infile.split(".")[-1]
time = infile.split("_")[-1].split(".")[0]
if not extension in ["wav", "WAV"]: if not extension in ["wav", "WAV"]:
continue continue
try: try: