play-dtmf
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i play-dtmf

Weekly Downloads

1,059

Version

3.0.2

License

ISC

Unpacked Size

17.9 kB

Total Files

14

Last publish

Collaborators

  • kai670