If the TV has an optical audio output you can get an optical to 5.1 analog converter. The output is fixed so you have to use the soundbar remote to control volume.
If the TV has an analog audio or headphone output you can connect that to the front input. No surround sound unless the soundbar has a mode for a stereo input.