Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTMF detector fails for 48KHz audio #10

Closed
bert2 opened this issue Jan 13, 2018 · 1 comment
Closed

DTMF detector fails for 48KHz audio #10

bert2 opened this issue Jan 13, 2018 · 1 comment

Comments

@bert2
Copy link
Owner

bert2 commented Jan 13, 2018

DTMF detector is not working correctly with audio files that have a sample a rate of 48 KHz.

Expected Behavior

  • Detector should work with 48 KHz audio.

Current Behavior

  • When 48 KHz audio is fed to the detector it will miss actual DTMF tones and find false positives.

Possible Cause

  • NAudio's WdlResamplingSampleProvider seems to be unable to suppress aliasing effects when downsampling from 48 KHz to 8 KHz

Steps to Reproduce

  1. Run integration test AudioFileTests.ShouldDownsample48KHzCorrectly()

Possible Solution

  • Try another of NAudio's resamplers
  • Low-pass filter the audio data with cut-off at 8 KHz before downsampling
@bert2
Copy link
Owner Author

bert2 commented Feb 20, 2020

Unable to reproduce issue in 1.0.0.

@bert2 bert2 closed this as completed Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant