Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter false positive DTMF detections
During some testing I found out that (with my setup) non DTMF sounds (general city sound, car traffic, police siren, women screaming, ...) could trigger the detection. After some investigation I found out that the difference between a valid and invalid detection could be simply made. The enhancement I made is to check if the energy levels of the 2 detected frequencies is about the same (in a 300% range). A DTMF is generated with 2 frequencies of the same energy level. So that is also what should be detected. In the non DTMF sound I used, most of the detection where of 2 frequencies that were in the range of 50000%.
- Loading branch information