How to convert node.outputFormat to settings for AVAudioFile

Am trying to go from the installTap straight to AVAudioFile(forWriting:

I call:

let recordingFormat = node.outputFormat(forBus: 0)

and I get back :

<AVAudioFormat 0x60000278f750:  1 ch,  48000 Hz, Float32>

But AVAudioFile has a settings parameter of [String : Any] and am curious of how to place those values into recording the required format.

Hopefully these are the values I need?

How to convert node.outputFormat to settings for AVAudioFile
 
 
Q