Skip to main content
Feeds an audio file into the microphone of the simulator, so the app under test hears the audio instead of silence. Use it to test flows like voice input or speech recognition. This command runs only on Momentic-hosted iOS simulators. It is not supported on Android or on local simulators.

Parameters

Use a .wav, .mp3, .m4a, .aac, or .caf file.

Examples

Simplified form:
Detailed form, with a single pass instead of a loop:
Setting a new file replaces the one that is playing. Put the step in before to keep one audio input active for the whole test: