We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To support detect DTMF from all NAudio supported file types, change "WaveFileReaderExtensions.cs" like this:
namespace DtmfDetection.NAudio { using System.Collections.Generic; using global::NAudio.Wave; public static class WaveFileReaderExtensions { public static IEnumerable<DtmfOccurence> DtmfTones(this WaveStream waveFile) { var dtmfAudio = new DtmfAudio(new StaticSampleSource(waveFile)); while (dtmfAudio.WaitForDtmfTone() != DtmfTone.None) { var start = waveFile.CurrentTime; dtmfAudio.WaitForEndOfLastDtmfTone(); var duration = waveFile.CurrentTime - start; yield return new DtmfOccurence(dtmfAudio.LastDtmfTone, start, duration); } } } }
Thanks.
The text was updated successfully, but these errors were encountered:
I just comitted the fix suggested by you. Thanks for your input!
Sorry, something went wrong.
bert2
No branches or pull requests
To support detect DTMF from all NAudio supported file types, change "WaveFileReaderExtensions.cs" like this:
Thanks.
The text was updated successfully, but these errors were encountered: