Skip to content
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

Merged
merged 5 commits into from
Mar 22, 2023

Conversation

pzelasko
Copy link
Collaborator

Thanks to @boeddeker for the suggestion.

@pzelasko pzelasko added this to the v1.13 milestone Mar 17, 2023

from nara_wpe.wpe import wpe_v8

assert audio.ndim == 2
Copy link
Contributor

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(
Copy link
Contributor

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.

@@ -80,31 +80,46 @@ def dummy_recording(
def dummy_audio_source(
num_samples: int = 16000,
sampling_rate: int = 16000,
channels: List[int] = None,
Copy link
Contributor

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]]?

@pzelasko
Copy link
Collaborator Author

Thanks for the review, I fixed everything.

@pzelasko pzelasko merged commit 2e8182f into master Mar 22, 2023
@pzelasko pzelasko deleted the wpe-numpy branch March 22, 2023 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants