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

Reduce redundancy in dynamic resampling #180

Open
juanmc2005 opened this issue Oct 11, 2023 · 0 comments
Open

Reduce redundancy in dynamic resampling #180

juanmc2005 opened this issue Oct 11, 2023 · 0 comments
Labels
feature New feature or request

Comments

@juanmc2005
Copy link
Owner

In RealTimeInference, resample before rearrange_audio_stream so the same audio is not resampled multiple times.
Because of how the first 5s buffer is filled at the beginning, this actually means that Resample will be called more times, but (unless it's running on GPU) each call should also be faster because the size of the chunk is reduced by 10 (80k vs 8k samples)

@juanmc2005 juanmc2005 added the feature New feature or request label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant