If your tv has hdmi-arc, if not you will need to use combination of regular hdmi and optical. The arc or optical is what sends the audio from your tv to streambar. And the tv needs to recognize the streambar as a cec device, by refreshing the cec devices once the streambar is connected.
Edmund
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.