Hello.
What is your TV model number? Does your TV have an earphone jack, or Red/White RCA jack written "Audio Out" on it?
If it has an RCA Audio Out port, connect this directly to the sound bar.
If it doesn't have either an RCA audio out, headphone jack and optical out, then your best best is an Audio Extractor:
http
/www.newegg.com/Product/Product.aspx?Item=9SIA4V24NB4154
This goes in between your video source (Cable/Dish, PC, PS4, etc) and your TV. The HDMI passes through and extracts your sound. You then connect the sound bar to the optical or L/R output.
Essentially, anything plugged on the HDMI input will have its sound extracted and sent to the sound bar. I suggest getting an HDMI switch if you have multiple electronics to...