Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4446

Graphics, sound and multimedia • Playing sound file from system service

$
0
0
I look for ability to play .ogg sound file from a Bash script, registered as a service.
My OS is bookworm.
Media player used by my script is "cvlc" and it successfully played media file when run from a command line.
However, when same script is registered as a service, with a same user, it leave next error in journalctl:

Code:

 [00000055993d55b0] main audio output error: module not functional [0000007f9cc14580] main decoder error: failed to create audio output [00000055993d55b0] alsa audio output error: cannot open ALSA device "default": Unknown error 524 [00000055993d55b0] main audio output error: Audio output failed [00000055993d55b0] main audio output error: The audio device "default" could not be used:
The situation is similar to attempt to play media file form cron - see my previous question.

Did anybody succeeded or have any suggestion for playing audio files from service script?

Statistics: Posted by baruchli — Thu Jan 25, 2024 2:51 pm — Replies 0 — Views 32



Viewing all articles
Browse latest Browse all 4446

Trending Articles