@kimmel/dtmf
v1.0.4
Published
Dual Tone - Multi Frequency player
Downloads
104
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
DTMF(audioContext: 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