Hello there 144MGROAD,
We understand you're trying to direct the audio from your Apple TV directly to your sound bar since the audio port on your TV is not working. Let's take a closer look as we do our best to provide some additional insight.
To get started, unless your sound bar supports Bluetooth or uses a different kind of wireless connection, there wouldn't be another supported way to transfer the audio directly. You'll either need to use a different audio output on your TV, repair the existing port, or use a Bluetooth compatible sound bar or other supported wireless speaker instead.
Use AirPlay to stream audio
This assumes you're using a model of Apple TV that doesn't have built-in optical audio. Some users have tried using external audio DAC audio converters or other inline adapters, however these are not guaranteed to work with the digital connection the Apple TV uses over HDMI to communicate with your TV.
Set up Apple TV
We hope this helps get you pointed in the right direction.
Take care.