No sound via HDMI RPI4

Required Information

  • DietPi version | 18.4.2
  • Distro version | Bullseye
  • Kernel version | 5.15.84-v8+
  • SBC model | RPI4

Additional Information (if applicable)

  • Software title | Chromium in Kiosk Mode

I have a RPI4 running a website (local http server with lighthttpd) and I am want to play a sound (wav file) when an icon.

The sound has to be played through HDMI. Monitor supports sound via HDMI.

I set the Sound Setting in DietPi config to HDMI etc.

No sound.

When I try to play the wav file (which is played in the website) on the console I get these messages:

aplay -vv fanfare.wav
Playing WAVE ‘fanfare.wav’ : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1343: Sample format non available
Available formats:

  • IEC958_SUBFRAME_LE

It seems that the file cannot to be played.

Im never worked with sound on the raspi. Any suggestions?

let me ping our sound guru @MichaIng

Try to enable the auto-conversion plugin via dietpi-config audio options. The sound card has limited native audio format support. The auto-conversion plugin does the conversion to nearest supported format, when needed. I’m more and more convinced that we should enable this by default.

I tried it. It does not help.

Any other options?

Hi
love the os .It is nice and tight but alsa sound is a problem.
I think it is something how the Hdmi 0 shows up.
mine show as vc-hdmi-0. why is vc in front?
thanks
John

Hello.
I think I have some thing I need to check on.
I am using a sound bar with the pi plug into a hdmi ARC port.
Maybe the ARC is causingf issues for the OS.
I will try to find a non ARC port and test it out
John

Ok,
I changed to non ARC port and itis working .
It is Dobly Digital 5.1

1 Like

No sound on hdmi, but headphone jack works
Im on a fresh install of dietpi latest with LXDE
With or without auto conversion doesnt seem to make a difference