diff --git a/enhancer/data/fileprocessor.py b/enhancer/data/fileprocessor.py index 66d4d75..03afc73 100644 --- a/enhancer/data/fileprocessor.py +++ b/enhancer/data/fileprocessor.py @@ -98,6 +98,10 @@ class Fileprocessor: return cls(clean_dir, noisy_dir, ProcessorFunctions.one_to_one) elif name.lower() == "dns-2020": return cls(clean_dir, noisy_dir, ProcessorFunctions.one_to_many) + else: + raise ValueError( + f"Invalid matching function, Please use valid matching function from {MATCHING_FNS}" + ) else: if matching_function not in MATCHING_FNS: raise ValueError( diff --git a/enhancer/inference.py b/enhancer/inference.py index ae399f1..fd3b518 100644 --- a/enhancer/inference.py +++ b/enhancer/inference.py @@ -91,7 +91,7 @@ class Inference: window_size: int, total_frames: int, step_size: Optional[int] = None, - window="hanning", + window="hamming", ): """ stitch batched waveform into single waveform. (Overlap-add)