Use device.injectAudio() to replace your app’s microphone input with a pre-recorded audio file. This lets you test voice recording, speech recognition, and audio processing features under controlled, repeatable conditions.
See the iOS Device Reference for the full API.
Audio injection is only available for apps that QA Wolf resigns during installation. It is not available for system apps or Safari.
Examples
Inject audio into the microphone
Pull the recording off the device
When to use
- Your app records audio or processes microphone input and you need to test that flow with known audio data.
- Your app has voice commands or speech recognition features that need consistent, repeatable input.
- Your app validates or transforms microphone input and you need to assert on the output.
- Your test needs to simulate a specific audio input that is difficult to produce in a test environment.
Supported file types
WAV
Full sample test