I have an iPhone-only app which only accepts microphone input.
I want to input a pre-recorded high-quality audio file into the app, but it only accepts input from the microphone.
On macOS, it would be possible to create a virtual microphone device, select that as the audio input, playback an audio file, and output it to the virtual microphone. However, that workflow is not possible on iOS.
Is there any way to achieve this on an iPhone?
One idea I had was to connect a professional-grade microphone supporting USB to the iPhone using a powered lightning-to-USB connector, and playing the audio track back at a high quality, but this seems like overkill for a simple task like this. Is there any better way to reroute this audio file to the app's microphone input?