Cable box and BD player connect to the TV with HDMI.
TV optical audio output connects to the Bose optical input.
Check the TV manual on how to turn on the output. You may need to turn the TV speakers off too.
Check the Bose manual on how to assign the optical input.