Teletone generate

From FreeSWITCH Wiki
Jump to: navigation, search

Description

Generates a tone of a single or mixed frequencies.

Synopsis

generate(TGML)
  • TGML is a markup language that describes the component frequencies, duration, volume, decay, and other properties.

Example

// play the ITU E.184 'calling card bong'
use("TeleTone");
var BONG = "v=4000;>=0;+=2;#(60,0);v=2000;d(940,0)";
var tts = new TeleTone(session);
tts.generate(BONG);