LCA Client utility makes it easier to test Call Event Processors and LCA UI without having to actually make a phone call. Simulates LCA call events required by Call Event Processor. Uses call recording (stereo file) as input and writes the events to LCA's KDS (integration layer). Supports both TCA and Standard transcribe modes.
The code runs locally from your terminal command line or from cloud shell/cloud9 command line. git clone the repo to your local environment.
-
npm run setup
to setup the package dependencies -
npm run build
to build and check for build errors -
Update environment variableS
KINESIS_STREAM_NAME
with LCA's KDS stream name andSAVE_PARTIAL_TRANSCRIPTS
to either true or falseexport KINESIS_STREAM_NAME=lca-v71-dev-AISTACK-U5YC0V5N9GN4-CallDataStream-WXYcCPtpD9Eq
export SAVE_PARTIAL_TRANSCRIPTS=true
-
npm run exec <mediaFileName> [api-mode] [Region]
where
api-mode
- standard or analyticse.g.
npm run exec data/sample90seconds.wav standard us-east-1
Sample audio files are provided in data/
directory.