-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(cut|recording).dereverb_wpe() API
+ more stable numpy version
#1000
Conversation
lhotse/augmentation/wpe.py
Outdated
|
||
from nara_wpe.wpe import wpe_v8 | ||
|
||
assert audio.ndim == 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we print out audio.shape on assertion failure?
|
||
def reverse_timestamps( | ||
self, offset: Seconds, duration: Optional[Seconds], sampling_rate: int | ||
) -> Tuple[Seconds, Optional[Seconds]]: | ||
return offset, duration | ||
|
||
|
||
def dereverb_wpe_numpy( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is not documented at all.
lhotse/testing/dummies.py
Outdated
@@ -80,31 +80,46 @@ def dummy_recording( | |||
def dummy_audio_source( | |||
num_samples: int = 16000, | |||
sampling_rate: int = 16000, | |||
channels: List[int] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be Optional[List[int]]?
Thanks for the review, I fixed everything. |
Thanks to @boeddeker for the suggestion.