fix window type
This commit is contained in:
parent
fc7a7996bf
commit
86e56f2b50
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue