Play and audio file on the server

Posted on
Sat Dec 05, 2020 2:54 pm
xgeek offline
Posts: 7
Joined: Feb 28, 2009

Play and audio file on the server

I understand folks want to hear audio on their local device and that is currently in work or planned. What I would like is simply to be able to play an audio file on the server as part of a Trigger action. I can use plugins to direct that audio elsewhere (airfoil to other speakers). What would be great is something like the "speak text" checkbox but for an audio file that would be chosen. If a python script is possible, how about putting one in the scripting examples. I will get to scripting in python, but it will be a while and I bet there are lots of folks that will never take the time.

Posted on
Sat Dec 05, 2020 11:25 pm
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Play and audio file on the server

One thing you might consider is to create an external AppleScript to do this. I'm not a scripting guy but a quick search gave a few examples. Not exactly what you want to do, but might work in the short term.

Posted on
Sun Dec 06, 2020 12:42 pm
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Play and audio file on the server

Use the Run Shell Script action with the /usr/bin/afplay command-line tool:

grab0.png
grab0.png (73.59 KiB) Viewed 910 times

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests

cron