Does the Apple TV 4G have optical audio out?

ATV4

No, audio is delivered via HDMI on the new Apple TV. Previous models had Optical Audio out, but there is no Optical Audio port on the Apple TV fourth generation.

The Apple TV 4G has improved sound output over the old Apple TV, upgrading from Dolby digital 5.1 to Dolby Digital Plus 7.1. The Dolby 7.1 audio is delivered over an HDMI 1.4 port directly to a television or monitor.