Audio injection overview
On a device that has audio injection enabled, you can inject an audio file to mimic microphone reception. This is helpful when testing actions in apps that rely on audio input. Audio injection mocks the use of the microphone by using an uploaded audio file and presenting it to the application as if it was read by the device microphone.
On this page:
Audio injection requirements
Audio injection supports files that meet the following requirements:
-
Max size: 150 MB
-
Format:
.mp3,.wavWhen Text-to-Audio is used as the source for audio injection, the injected audio must meet the format requirements for audio injection (WAV). The Text‑to‑Audio command itself does not expose an output‑format parameter.
-
Sound quality (sample rate): 16000 Hz or above
-
Length: When selecting Wait, the audio file cannot exceed 4 minutes. For audio files longer than 4 minutes, select No wait and follow with a Wait command.
-
Location: Local machine (manual testing and AI Scriptless testing only) or Perfecto repository (mandatory for automation testing)
Audio injection limitations
Audio injection is subject to the following limitations:
-
Audio injection must be enabled for the device by cloud configuration.
-
Audio injection behavior varies by platform and use case (for example, application audio input versus voice call scenarios).
-
Some advanced audio injection scenarios, such as voice call testing, may require additional enablement by Perfecto Support.
For an overview of supported audio scenarios across platforms, see Audio testing support matrix.
Where to go from here?
To perform audio injection, check out the following articles. For a broader view of supported audio scenarios and platform behavior, see Audio testing.
-
Manual testing: Inject an audio file
-
Scriptless testing: Inject an audio file
-
Automation testing ( Perfecto extension): Inject Audio (FR)