UNPKG

goertzeljs

Version:

A pure JavaScript implementation of the Goertzel algorithm.

20 lines (17 loc) 1.28 kB
<!DOCTYPE html> <html> <head> <title>Goertzel.js DTMF Demo</title> <link rel="stylesheet" type="text/css" href="style.css"> <script src="bundle.js"></script> <script src="demo.js"></script> </head> <body> <a href="https://github.com/ravenstine/goertzeljs"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a> <header> This is a demo for Goertzel.js. It can detect dial-tones(aka DTMF, Touch-tone) through your microphone. This will only work in newer versions of modern browsers such as Google Chrome and Firefox, or any browser that properly supports the `getUserMedia` browser API. To test the demo, use your phone(or play <a href="http://www.youtube.com/watch?v=qg9xrP_U1Cg" target="_blank">this video</a>) to generate dial-tones. The browser should pick up samples through your microphone and use them to detect the dial-tones. The corresponding digits should appear below. </header> <output></output> </body> </html>