Audio Record

Discussions about creating CAPI applications to run on Android devices
Post Reply
Arjun Brti
Posts: 5
Joined: October 15th, 2020, 3:40 am

Audio Record

Post by Arjun Brti » November 10th, 2020, 11:53 pm

Dear team,

I have added the following logic to record the audio of interview. But when I test the application, I am receiving the following error message attached herewith.

PROC GLOBAL
audio Recording;

PROC _LEVEL
Recording.record();

PROC LAST_FIELD {Last field of the application}
Recording.stop();
string audioFilename = maketext("Record-%V-%V-%V-audio.m4a", DISTRICT, EA, INT);
Recording.save(audioFilename);


Regards
Btri
Attachments
Capture.PNG
Capture.PNG (40.54 KiB) Viewed 311 times

Gregory Martin
Posts: 1399
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Audio Record

Post by Gregory Martin » November 11th, 2020, 10:22 am

You start the recording in the postproc of ..._LEVEL so that won't get triggered until the end of the case. Try putting it in the preproc instead.

Post Reply