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)
|
return cls(clean_dir, noisy_dir, ProcessorFunctions.one_to_one)
|
||||||
elif name.lower() == "dns-2020":
|
elif name.lower() == "dns-2020":
|
||||||
return cls(clean_dir, noisy_dir, ProcessorFunctions.one_to_many)
|
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:
|
else:
|
||||||
if matching_function not in MATCHING_FNS:
|
if matching_function not in MATCHING_FNS:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ class Inference:
|
||||||
window_size: int,
|
window_size: int,
|
||||||
total_frames: int,
|
total_frames: int,
|
||||||
step_size: Optional[int] = None,
|
step_size: Optional[int] = None,
|
||||||
window="hanning",
|
window="hamming",
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
stitch batched waveform into single waveform. (Overlap-add)
|
stitch batched waveform into single waveform. (Overlap-add)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue