How to access three js camera instance in AR experience?

I am building an AR app and I need to get access to xr camera instance. I tried with renderer.xr.getCamera() method once the session is started but it returns undefined. I am using three.js examples this example for now. Also is it possible to implement spatial audio using positional audio in AR? can it be done without camera transformation?