AirPods Pro - how to "turn on" spatial audio

I want to use the APPs to listen to spatialized audio that I am synthetically generating, and have that audio be in a certain location with respect to the head. As you turn your head, the sound moves. As you walk around you can hear the sound moving in different positions. Is there example code of this out there? How do I make this happen on iOS? There are so many APIs out there for outputting sound on iOS, which one would be the quickest to get the spatialized 3D audio working?

AirPods Pro - how to "turn on" spatial audio
 
 
Q