From 4f20b3fd63438ac432202669a9ea91b2fc958fc1 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 31 Jul 2024 23:14:14 -0600 Subject: [PATCH] Change temp --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fc91948..b0fa473 100644 --- a/index.js +++ b/index.js @@ -86,7 +86,7 @@ function sendAlert(accountNumber, transaction, placeName, systemName, zoneNumber } else if (row) { // Account exists and is verified // Send the alert - runCommand(`flite -t "Hello. This is an automated call from KCA SecuriNet Monitoring. ${systemName} has reported an ${event} at ${placeName} in ${zoneNumber}, ${zoneName}" -o /tmp/${transaction}.wav`).then((output) => { + runCommand(`flite -t "Hello. This is an automated call from KCA SecuriNet Monitoring. ${systemName} has reported an ${event}, ZONE ${zoneNumber}, ${zoneName} at ${placeName}" -o /tmp/${transaction}.wav`).then((output) => { runCommand(`ffmpeg -y -i /tmp/${transaction}.wav -ar 8000 -ac 1 -c:a pcm_s16le /tmp/${transaction}-ast.wav`).then(() => { runCommand(`rm /tmp/${transaction}.wav`) // strip extension from filename