Trying to play sound in my automation

Hello,

So I have a Raspberry Pi 4 running on OMV and I have portainer installed. I installed Home Assistant Core on docker via Portainer.
I have a bluetooth speaker that I couldn’t get to add to Home Assistant but it is connected to my Raspberry so any sound that the latter plays is played by the speaker.
The thing is I have this automation that I want to play a sound in and I have no idea how to do that. I tried so many solution but none of them worked. I tried to add shell commands and run an aplay command but that didn’t work. I tried installing vlc directly in the Home Assistant container but that didn’t work either. I tried running vlc telnet on my raspberry directly and then connecting to it on HA but it won’t, and a bunch of other solutions.
Can you help me please?
Thank you.