cronjob not playing audio through USB speaker

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

cronjob not playing audio through USB speaker

Post by /RaspberryPi »


Had some alarms to play during the day in the office. Had been running fine for years.



Upgraded this Pi to latest 64bit version of Raspbian last week. (full reinstall), using the Desktop version.



I can play files via terminal using..



aplay /home/user/soundfile.wav



When I try to launch it using cronjob, no audio plays.



Any pointers?
submitted by /u/thebledd
[link] [comments]

Source: https://www.reddit.com/r/raspberry_pi/c ... b_speaker/
/RaspberryPi
Post Reply

Return to “Raspberry Pi Forum”