No CM4, but on a Pi4 running Raspberry Pi OS 32-bit Lite (Bullseye), with all updates and a powered speaker in the 3.5mm jack
Login as pi. Check that output is set (in my case) to 3.5mm jack [0 bcm2835 Headphones ] using sudo rasp-config
sudo nano /etc/asound.confreboot
This then plays the .wav OK:Oddly, it creates a file .asoundrc owned by root in /home/piInstall mpg123 and play a short Sabbath mp3 - all OK
Login as pi. Check that output is set (in my case) to 3.5mm jack [0 bcm2835 Headphones ] using sudo rasp-config
sudo nano /etc/asound.conf
Code:
defaults.pcm.card 2defaults.ctl.card 2
This then plays the .wav OK:
Code:
aplay /usr/share/sounds/alsa/Front_Center.wav
Code:
-rw-r--r-- 1 root root 215 Aug 23 14:37 .asoundrc
Code:
mpg123 snowblind.mp3
Statistics: Posted by neilgl — Fri Aug 23, 2024 1:45 pm