no optical cable on tv plus sound bar has no usb

Solution
Perhaps you should list the two models you are trying to connect.

HDMI is a common way to connect sound bars to TV when optical is not used.