We have collected the most relevant information on Raspberry Pi Audio Over Hdmi. Open the URLs, which are collected below, and you will find all the info you are interested in.
Audio configuration - Raspberry Pi Documentation
https://www.raspberrypi.org/documentation/configuration/audio-config.md#:~:text=The%20Raspberry%20Pi%20has%20up%20to%20three%20audio,or%20other%20speakers%20plugged%20into%20the%20headphone%20jack.
raspbian - How to enable sound on HDMI? - Raspberry Pi ...
https://raspberrypi.stackexchange.com/questions/32717/how-to-enable-sound-on-hdmi
If you want sound over HDMI, config.txt should have both: hdmi_group=1. hdmi_drive=2. You need them both set because hdmi_group=1 tells the kernel we are using CEA mode (for TV's, has sound) instead of DMT mode(for monitors, no sound) and hdmi_drive=2 tells the kernel to use HDMI if available. (HDMI mode has sound, DVI does not.)
Raspberry Pi Documentation - Configuration
https://www.raspberrypi.com/documentation/configuration/audio-config.md
The Raspberry Pi Zero uses a mini HDMI port, so you will need a mini-HDMI-to-full-size-HDMI lead or adapter. On the Raspberry Pi 4 there are two micro HDMI ports, so you will need either one or two micro-HDMI-to-full-size-HDMI leads or adapters, depending on how many displays you wish to attach. You should connect any HDMI leads before turning on the Raspberry Pi.
RASPBERRY PI 3- PLAY AUDIO THROUGH HDMI - YouTube
https://www.youtube.com/watch?v=A6yhqafHJGU
Raspberry pi 3 No audio through HDMI - Forum - Raspberry ...
https://community.element14.com/products/raspberry-pi/f/forum/30257/raspberry-pi-3-no-audio-through-hdmi
This worked on Raspberry Pi 4 using noobs 3.2.0 on 8/9/2019 . Open a terminal . type: sudo leafpad . In leafpad click 'file' then click 'open' on the drop down menu . now click 'File System' Double click 'boot' Find the file 'config.txt' and open it . go down a few lines in 'config.txt' and find '#hdmi_drive=2' Remove the '#' so it reads 'hdmi_drive=2'
Now you know Raspberry Pi Audio Over Hdmi
Now that you know Raspberry Pi Audio Over Hdmi, we suggest that you familiarize yourself with information on similar questions.