Optimize Torchaudio Vad (#3382)
Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3382 The voice activity detector function was unoptimized, confusingly written, and buggy. The optimizations created here allow for the function to run roughly 17x faster. The main optimizations were to loop over windows of audio rather than individual audio samples. Reducing the number of copies also helped. There was an off by one error where the array slice referenced was [1: 16001] (for the default settings) instead of [0: 16000] Reviewed By: hwangjeff Differential Revision: D44749359 fbshipit-source-id: c76c9412e70cdc6fcd527d113603c88f78480558
Showing
Please register or sign in to comment