All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.
[x] I acknowledge that all my contributions will be made under the project's license.
This PR adds silence detection to the InputTest. The logic of silence detection is as follows:
Find at least 3 seconds worth of volume samples.
Calculate the standard deviation of the samples.
If the standard deviation is <= 2.55 (1% of the max of 255), then we have constantAudio
If we have constantAudio and the average of those samples is also <= 2.55, then we have low audio.
Contributing to Twilio
Pull Request Details
JIRA link(s):
Description
This PR adds silence detection to the
InputTest
. The logic of silence detection is as follows: Find at least 3 seconds worth of volume samples. Calculate the standard deviation of the samples. If the standard deviation is<= 2.55
(1% of the max of 255), then we haveconstantAudio
If we haveconstantAudio
and the average of those samples is also<= 2.55
, then we have low audio.Burndown
Before review
npm test
Before merge