Can't give you an exact answer without knowing make and model of TV.
The soundbar can be connected two ways
1. HDMI -ARC If the TV has an HDMI input labeled ARC then connect the soundbar and turn ARC on in the TV.
2. Digital optical If the TV has optical audio output then a Toslink cable will work. You may have to turn the optical on, the TV speakers off and change the audio output type in the TV menu.
You would need a converter if the TV doesn't have the correct outputs for the soundbar.