Joseph Rosevear
2023-02-18 02:17:36 UTC
Hello,
I'm trying to schedule, using at, the playing of a sound. I can schedule
events OK, but the playing of a sound is troublesome. Pulseaudio doesn't
want to cooperate.
I'm using
play -q /usr/share/sounds/purple/alert.wav
in a script to play the sound.
I schedule the execution of the script with
another script that performs
at -f $level/ring now + $1 minutes
$level is the location of the script that plays the sound, and ring is
the script.
It doesn't work. Pulseaudio seems to hang. Sometimes it plays the sound
later--maybe after a shut down and restart? I didn't carefully note the
scenario.
I'm running the script as an ordinary user in an environment that has
pulseaudio already running.
-Joe
I'm trying to schedule, using at, the playing of a sound. I can schedule
events OK, but the playing of a sound is troublesome. Pulseaudio doesn't
want to cooperate.
I'm using
play -q /usr/share/sounds/purple/alert.wav
in a script to play the sound.
I schedule the execution of the script with
another script that performs
at -f $level/ring now + $1 minutes
$level is the location of the script that plays the sound, and ring is
the script.
It doesn't work. Pulseaudio seems to hang. Sometimes it plays the sound
later--maybe after a shut down and restart? I didn't carefully note the
scenario.
I'm running the script as an ordinary user in an environment that has
pulseaudio already running.
-Joe