Page 1 of 1

Application runner not running espeak

PostPosted: Tue May 05, 2020 4:56 pm
by teobuhrmann
Hi, I am trying to use application runner to run espeak (Linux text to speech program) to notify me in words on video events.

It has been hard to get it to run a bash script that uses espeak. I eventually got a script to run by using:
The program to run: /bin/bash
The parameters of program: /home/server/script/speak.sh

After lots of testing, Xeoma runs the script as root with the script run from the root folder, so full path referencing is required. Then I used the script to do fault finding by trying several different commands in the script:

espeak "hello" - No sound, but works when I run it as server user and as root in terminal.
sudo -u server espeak "hello" - No sound, but works when run in terminal.

ps -aux | grep espeak - show espeak as an active process, but it does not seem to terminate.

The running interval is set to 10 seconds, which is a lot longer than "hello".

What am I doing wrong?

Re: Application runner not running espeak

PostPosted: Tue May 05, 2020 7:59 pm
by teobuhrmann
:D After a reboot, it all worked perfectly!

Application runner details:
Full path: /bin/bash
Parameters: /home/server/scripts/speak.sh "Visitor at gate"

Script contained:
#/bin/bash
sudo -u server espeak "$1"

As soon as loitering module is activated then the xeoma client calls out "Visitor at gate"!

Re: Application runner not running espeak

PostPosted: Tue Jun 02, 2020 12:06 pm
by Admin_N
Thank you for sharing the information! We hope that you enjoy Xeoma - and that your findings will help other Xeoma users!

With love,
Admin_N