Fields returned while using SendFileToCPA


Field Name

Description

avg_energy

Average energy seen throughout the voice data

break

Specifies whether to stop CPA analysis. Returns true/false.

call_uuid

uuid of the call

duration

Duration of the data analysed in seconds

freq_found

Frequency found

initial_silence_found

Duration of the silence found in ms

initial_silence_ignored

Duration of the silence ignored in ms

max_energy

The maximum energy found in the voice data

pattern

Energy pattern seen in the voice data

real_time

CPU seconds used

request_count

Count of the requests handled so far

result

Returns the tone detected (“AM”, “LV”, “BP”, “SIT”, “SL”) in the raw file

sampling_rate

Specified sampling rate of the analysed audio file

voice_filename

Path to the raw file created

Sample response:

***************{

   "avg_energy": 2990,
   "break": true,
   "call_uuid": "4463116f-e604-4099-9695-4b9af06cf7bd",
   "duration": "2.88",
   "freq_found": 0,
   "initial_silence_found": 1125,
   "initial_silence_ignored": 1125,
   "max_energy": 10087,
   "pattern": "11111110000000",
   "real_time": 2989,
   "request_count": 140,
   "result": "LV",
   "sampling_rate": 8000,
   "voice_filename": ""
}
Note:
LV - Live Voice
AM - Answering Machine
TO - Time out, total time exceeded
FX - Fax
BP - Beep
SL - Silence
SIT - Special information tones
EAM- Extended Answering Machine
IBP -Immediate Beep