Closed hongfanmeng closed 3 weeks ago
The original ComputeDecibel used a Python for loop, which was slower in speed. Optimizing it with numpy calculations can speed up the process.
ComputeDecibel
Experiments on Xeon Gold 5118 showed that for a 28-minute audio, the VAD time could be reduced from 38 seconds to 26 seconds.
cProfile Result (ComputeDecibel func from 15.5s to 0.39s) :
Before:
After:
The original
ComputeDecibel
used a Python for loop, which was slower in speed. Optimizing it with numpy calculations can speed up the process.Experiments on Xeon Gold 5118 showed that for a 28-minute audio, the VAD time could be reduced from 38 seconds to 26 seconds.
cProfile Result (ComputeDecibel func from 15.5s to 0.39s) :
Before:
After: