You first need make sure your television has optical capability.
Virtually all modern lcd panels can have an input known as S/PDIF (this is short for Sony/Phi https://socialconnext.Perhumas.or.id/article/525213/the-value-of-watching-current-events-of-your-cable-tv/