# Ruby library for DTMF detection

**URL:** <https://www.ruby-forum.com/t/ruby-library-for-dtmf-detection/81231>\
**Category:** Ruby\
**Created:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/ruby-library-for-dtmf-detection/81231 "2007-01-06T19:30:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasir\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/838e76/32.png) [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Post date:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/ruby-library-for-dtmf-detection/81231/1 "2007-01-06T19:30:30Z")

</div>

Hi,  
I am looking for a Ruby library for simple DTMF tone detection. It would  
be  
presented with an audio-file / continuous-stream and it should detect  
DTMF  
tones in it.  
Is there one already available somewhere?

TIA

---

<div class="post-metadata">

**Author:** ![Nasir\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/838e76/32.png) [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Post date:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/ruby-library-for-dtmf-detection/81231/2 "2007-01-06T19:30:41Z")

</div>

On 1/4/07, Nasir K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> I am looking for a Ruby library for simple DTMF tone detection. It would be  
> presented with an audio-file / continuous-stream and it should detect DTMF  
> tones in it.  
> Is there one already available somewhere?

If you couldn’t find anything, try looking for any library that does  
it (i.e. it will most probably be written in C/C++) and then look for  
ruby bindings. Try looking around Asterisk (Open source PBX software),  
they might have such functionality - have look at what they use.

If you could find a command line version, then audio file recognition  
would be possible using `` or Kernel#system.
