Edit msg
This commit is contained in:
parent
85d9b8aeb8
commit
0ffc4bb217
2
index.js
2
index.js
|
@ -90,7 +90,7 @@ function sendAlert(accountNumber, transaction, placeName, systemName, zoneNumber
|
||||||
} else if (row) {
|
} else if (row) {
|
||||||
// Account exists and is verified
|
// Account exists and is verified
|
||||||
// Send the alert
|
// Send the alert
|
||||||
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(`flite -t "Hello. This is an automated call from KCA SecuriNet Monitoring. ${systemName} has reported a ${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}-alert.wav`).then(() => {
|
runCommand(`ffmpeg -y -i /tmp/${transaction}.wav -ar 8000 -ac 1 -c:a pcm_s16le /tmp/${transaction}-alert.wav`).then(() => {
|
||||||
runCommand(`rm /tmp/${transaction}.wav`)
|
runCommand(`rm /tmp/${transaction}.wav`)
|
||||||
// strip extension from filename
|
// strip extension from filename
|
||||||
|
|
Loading…
Reference in a new issue