Repeating DTMF tones are not detected correctly when played too fast
Closed this issue · 1 comments
bert2 commented
When a DTMF tone is repeatedly played in short intervals, the DTMF detector will sometimes fail to tell them apart and report them as a single DTMF tone occurence instead.
Repro Steps
- Run integration test
AudioFileTests.ShouldDetectVeryShortDtmfTonesCorrectly()
Repro Steps (Alternative)
- Execute
DtmfDetector
- Press
O
to start capturing the current audio output - Play https://en.wikipedia.org/wiki/File:DTMF_dialing.ogg and compare detected tones with the ones specified
Note
This could be an issue with the test data. The tones might be played faster than the typical Mark/Space of 40/40, which the detector assumes as minimum.
bert2 commented
Issue has been fixed.