Nachos Pillage Milwaukee

    @kimmel/dtmf
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    dtmf Build Status codecov

    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

    Install

    npm i @kimmel/dtmf

    DownloadsWeekly Downloads

    10

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    9.93 kB

    Total Files

    6

    Last publish

    Collaborators

    • jacobhaug
    • ryanar
    • zackify