Skip to content

A simple library to send DTMF tones using Web Audio API

Notifications You must be signed in to change notification settings

andsouto/play-dtmf

Repository files navigation

play-dtmf

This is a simple library that allows playing DTMF and ringing tones using Web Audio API. It should work in any browser supporting Web Audio API.

Usage

import {PhoneTonePlayer} from 'play-dtmf';
const audioContext = new AudioContext();
const phoneTonePlayer = new PhoneTonePlayer(audioContext);
const tone = phoneTonePlayer.playDtmf('1');
tone.stop(1000)

TODO list

  • Improve tests.
  • Improve documentation.

About

A simple library to send DTMF tones using Web Audio API

Resources

Stars

Watchers

Forks

Packages

No packages published