Reduce redundancy in dynamic resampling
juanmc2005 opened this issue · comments
Juan Coria commented
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)