Cockpit Sound Toggle

Is there any simconnect variable or any LVARS etc that detect when the camera is inside or outside the cockpit? There must be some logic somewhere as the sim cockpit sound is toggled accordingly. I’m doing my own cabin announcements etc and it would be great if I could find the answer.