An optical cable is used to transfer high-quality audio signals and is usually paired with a soundbar or a home theatre system to give a theatre-like experience.