The function compares the number of samples of the files present in the input directory
to the corresponding output files in the subdirectories which start with "c" followed by 2 digits.
Parameters
----------
input_path: Path
Path to input directory
output_path: Path
Path to output directory
"""
forsubdirinoutput_path.iterdir():
ifsubdir.is_dir()andsubdir.name.startswith("c"):
forfileinsubdir.glob("*.wav"):
input_file=input_path/file.name
output_file=file
input_array,input_fs=read(str(input_file))
output_array,output_fs=read(str(output_file))
input_length,input_channels=input_array.shape
output_length,output_channles=output_array.shape
ifinput_length!=output_length:
logger.info(
f"The {input_file.name} has {input_length} samples and the output condition {subdir.name}{output_file.name} has {output_length} samples and the difference between the two is {input_length-output_length} samples.\n"