If you own a Mac and an Apple TV, you can use AirPlay to send audio or mirror your desktop to your TV. Otherwise, if your computer has audio-out ports, you can use cables (and adapters, if needed) to connect it and your TV. If your TV uses a Bluetooth soundbar, you can also connect your computer to that.