Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Parsing touch tone input?

by lofichurch (Beadle)
on Jul 22, 2002 at 20:07 UTC ( [id://184213]=note: print w/replies, xml ) Need Help??

in reply to Parsing touch tone input?

While I don't know of any perl-centric solutions to the problem of DTMF recognition beyond using PDL to implement a Fast Fourier Transform of some sort, to determine frequency and mapping that to a list of frequencies/dtmf tones...
There is a library called 'amTapi', that's fully TAPI compliant. amTapi purports to support DTMF detection and playback of wave files to telephony devices (among other features). It's written in C++, but you could (most likely) easily interface to it using XS. If you do happen make an XS interface, please share! =)

At any rate, since you're on windows, you should *definately* read up on TAPI which is the standard API for telephony devices under Win32.


Replies are listed 'Best First'.
Re: Re: Parsing touch tone input?
by TacoVendor (Pilgrim) on Jul 22, 2002 at 21:00 UTC

    hmmmm, amTapi can decipher the CallerID stream. *That* would allow the script to run or not run based on the incoming phone number.

    Arg! So many things that I want to add in now. Trying to plan and implement solutions one at a time is going to be frustrating. I can see there always being something on the horizon waiting to be added.

    As for making an XS interface, I don't know that I would hold my breath. I am nowhere near that level yet. Getting my script to determine that a number '5' has been pushed on the other end is quite enough challenge right now.


    You know, after reviewing some of the TAPI documentation, getting perl to see my modem on a win machine will be challenge enough!

    Thanks to you and ony other posters I have not already thanked. This is more information than I ever thought I would get.

      Ahh, but it is the challenges that drive us to learn. I felt that way myself, a while back, seeking to get some MIDI support in Win32. It took a few weeks, and a billion questions, but eventually got a rudimentary interface that I could use built.

      Good luck on your quest!


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184213]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-05-28 20:54 GMT
Find Nodes?
    Voting Booth?

    No recent polls found