README
dtmf
Dual Tone - Multi Frequency player using Web Audio API
Try the Demo
Install
$ npm install @kimmel/dtmf
Usage
import DTMF from '@kimmel/dtmf';
let player = new DTMF();
player.play(1);
player.play(8);
player.play(0);
player.play(0);
//=> plays DTMF sound for each key
API
AudioContext)
DTMF(audioContext:play(key: DialpadKey)
Type: DialpadKey
, String | Number
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, *, #, A, B, C, D
License
MIT © Ryan Castner