Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DTMFAnalyzerHaskell

DTMF Analyzer in Haskell (School project)

How to use it?

Either

  ghci
  Prelude>:l DTMFAnalyzer.hs
  Prelude>analyzeFile "your_file.wav"

Or

  ghc --make DTMFAnalyzer.hs
  DTMFAnalyzer.exe "your_file.wav"

How it works?

  1. The wave file is parsed into array of floats

  2. We take a "windows" of 100 floats and based on the average absolute value analyse whether there is sound or not

  3. Then we take the non-quite intervals and run FFT on them

  4. We take the two DTMF frequencies with the highest abs value of their coeffiecient

  5. Map the frequencies to dictionary and print the character representing them.

Credits:

First of all, I would like to thanks to Martin Mares (http://mj.ucw.cz) who helped me with the concept of FFT. Second, thank you, Miran Lipovica, for your great book http://learnyouahaskell.com/. Last but not least, my thanks goes to the creators of these wonderful websites: http://www.dialabc.com/ and https://twistedwave.com/online/.

About

DTMF Analyzer in Haskell (School project)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages