Application runner not running espeak

Xeoma Software

Moderators: Admin_N, Administrator, Admin_P, Admin_K

Application runner not running espeak

Postby teobuhrmann » Tue May 05, 2020 4:56 pm

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?
teobuhrmann
 
Posts: 2
Joined: Tue May 05, 2020 4:33 pm

Re: Application runner not running espeak

Postby teobuhrmann » Tue May 05, 2020 7:59 pm

: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"!
teobuhrmann
 
Posts: 2
Joined: Tue May 05, 2020 4:33 pm

Re: Application runner not running espeak

Postby Admin_N » Tue Jun 02, 2020 12:06 pm

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
Admin_N
 
Posts: 797
Joined: Thu Mar 01, 2012 4:43 pm


Return to Xeoma - General discussion

Who is online

Users browsing this forum: No registered users and 11 guests

cron