diart icon indicating copy to clipboard operation
diart copied to clipboard

Reduce redundancy in dynamic resampling

Open juanmc2005 opened this issue 2 years ago • 0 comments

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 avatar Oct 11 '23 14:10 juanmc2005