Closed ebradbury closed 2 months ago
Hi @ebradbury
Here is an example deployment file that should help you
audio:
restart: always
image: 'balenablocks/audio:raspberrypi4-64'
privileged: true
labels:
io.balena.features.dbus: '1'
volumes:
- 'src:/src'
networks:
- audio
your_app:
image: 'your_image'
privileged: true
environment:
PULSE_SERVER: 'audio:4317'
networks:
- audio
networks:
your_app:
driver: bridge
audio:
driver: bridge
Please let me know if this solves your problem. If you use waveshare speakers, you can also try my solution : https://github.com/MiroYld/smartaudio-docker
In order for me to get headphone audio working on RPi4 I had to do the following:
vc4-kms-v3d
from the DT overlay variable in the dashboardbrowser
andaudio
blocks innetwork_mode: host
PULSE_SERVER: 'tcp:localhost:4317'
inbrowser
environmentAUDIO_OUTPUT: RPI_HEADPHONES
inaudio
environmentI wasn't able to get any audio (HDMI or headphones) with any other configuration. Hope this helps someone