SetCPAParams Sample Requests

The samples provided below is only for reference. Depending on your deployment, you may want to add tones,break_events.


Sample 1   


CPA will break on receiving AM,LV and on detecting FAX tone with frequency 1662 +/- 5.


{

   "request_name":"set_cpa_params",

   "config_name":"cpa1",

   "tenant_id":"tester",

   "api_version":"1.0",

   "analysis":"amd",

   "time_limit":"1750",

   "log_voice":"no",

   "min_energy":"2",

   "sensitivity":"4",

   "min_ambient_energy":"1",

   "initial_silence_ignore":"1000",

   "tones":{

      "FX":"1662|5"

   },

   "break_events":"FX,AM,LV",

   "log_top_freq":"0",

   "total_timeout":"20000"

}


Sample 2 


To log recordings of the stream on which CPA is performed,set “log_voice”:”yes”.


{

   "request_name":"set_cpa_params",

   "config_name":"cpa1",

   "tenant_id":"tester",

   "api_version":"1.0",

   "analysis":"amd",

   "time_limit":"1750",

   "log_voice":"yes",

   "min_energy":"2",

   "sensitivity":"4",

   "min_ambient_energy":"1",

   "initial_silence_ignore":"1000",

   "tones":{

      "FX":"1662|5"

   },

   "break_events":"FX,AM,LV",

   "log_top_freq":"0",

   "total_timeout":"20000"

}


Sample 3


To receive the top 3 frequencies that are detected in the given stream, use log_top_freq to “3”. 

{

   "request_name":"set_cpa_params",

   "config_name":"cpa2",

   "tenant_id":"tester",

   "api_version":"1.0",

   "analysis":"amd",

   "time_limit":"1750",

   "log_voice":"yes",

   "min_energy":"2",

   "sensitivity":"4",

   "min_ambient_energy":"1",

   "initial_silence_ignore":"1000",

   “tones”: { “FX”: “2100|5”, “MD”: “1662|5”, “BP”: “1000|10” },

   “break_events”: “LV,FX,MD,BP,AM”,

   “log_top_freq”: “3”,

   "total_timeout":"20000"

}