Please follow below steps to play the sound through the soundbar speaker instead of the built-in speaker on the projector:
1. Connect Raspberry Pi to the projector with a HDMI cable.
2. Connect the soundbar speaker to the audio out jack on the projector with a 3.5 mm audio cable.