You'd want to connect a soundbar to your TV via HDMI if possible, as it will pass better-resolution audio and more advanced audio formats. These won't get transmitted via optical cable.