You will need a DAC to convert the optical audio out to analog. You will need to set the audio output to PCM stereo usually.
You can connect this to your TV instead of directly to the PS4. This way all your sound can come from the Bose.
You could also use an HDMI input selector with audio extraction if there are other HDMI sources that you want to connect to the Bose and your TV or monitor doesn't have audio outputs.