Do you see a red light coming from the optical cable when it's connected to your TV (and not the Streambar)? There may be a setting on your TV you have to change to enable the optical output.
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.