Audio capturing feature for iOS is coming in Appium 1.18.0 https://appium.io/docs/en/writing-running-appium/ios/audio-capture/ (Currently it is available as appium@beta). It is not handy to record audio especially on real devices, but when we bypass audio input from iPhone to the host macOS machine via MIDI, it can. Yey.
I personally think it is easy to use cloud providers, such as HeadSpin, to maintain devices for the audio automation purpose stably, since I guess keep maintaining real devices are not handy. We cannot change name of connected devices via MIDI. I haven’t tried, but maybe it has another challenge to handle multiple real devices on the local machine…