tagRecord
Creates a voicefile tag.
Description
vcc.tagRecord(tagName: string, position: number, relativeTime?: number, overwrite?: boolean)
Parameters
tagName
The name of the tag.
position
The position of the tag in the record in seconds (the record starts at the answer of the call).
relativeTime
The relative time of the tag, +/- second to the position.
overwrite
true to overwrite the existing tag, false otherwise.
Return values
true if the system saved the tag, false if the request failed.
Example
var stepResult = vcc.waitForSpeech(200, 100, 1200, 30000);
if (stepResult.result === 'ok') {
// Tag the recording at the end of the detected speech
var speechEndSec = stepResult.endOffsetMs / 1000;
vcc.tagRecord('step1_speech_end', speechEndSec, 0, true);
// Send DTMF and tag the event 0.5s after speech end
vcc.sendDTMF('2', 300);
vcc.tagRecord('dtmf_sent_2', speechEndSec, 0.5, false);
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.