Use an HDMI audio extractor op. Then get PCM audio via optical.
Product here
https://preview.redd.it/4v3nxe5gf89b1.jpeg?width=1284&format=pjpg&auto=webp&v=enabled&s=6f9e5ef8c52bbd9796cf17b4bfaf385e70b2a511