Skip to main content
The Voice & Audio setting lets the agent hear the audio a page plays during a web test and check what it says. Use it to test voice agents and calls, roleplays, voice forms, dictation, and audio or video players. Speaking is separate from listening. The agent can always speak into the browser microphone, with or without this setting. Turn the setting on only when the test also needs to hear the page.

Turn on page audio

1

Open the test

Open the test and select the Settings tab
2

Enable listening

Under Voice & Audio, select Let the agent hear page audio
3

Save the test

Save the test
Page audio is only captured for tests with this setting on, so leave it off for tests that never expect audio. Attaching an Audio Input config to a test also lets the agent hear page audio, even when the setting is off.

What the agent hears

With the setting on, QA.tech records the audio the page plays from the moment it loads:
  • The other side of a call made with WebRTC, such as a voice agent or a LiveKit call
  • Playback from <audio> and <video> elements, such as recordings and voice messages
When the agent listens, it gets a transcript of everything the page played since it last listened, including audio that finished while it was doing something else. If nothing has been played yet, it waits for the page to start speaking (15 seconds by default, up to 2 minutes). For calls, it also notes how long the other side took to start replying after the agent stopped speaking. Listen often in long conversations. When a lot of audio builds up between two listens (around 3 minutes, or 50 separate utterances), the oldest audio is dropped.

Speak into the microphone

The agent speaks into the browser microphone with text-to-speech. Write the lines it should say in the test steps. No setting or config is needed. To play a specific recording into the microphone instead, such as a real voice sample or background noise, create an Audio Input config and add it to the test. Audio Input accepts audio files up to 250MB. WAV works best for speech. A camera video also plays its audio into the microphone while the clip is showing.

Write a voice test

In the test steps, describe:
  • What the agent should say, one turn at a time, and the persona or tone to use
  • What each reply from the page must contain
  • When to press play, if the audio comes from a player on the page
For example:
Join the call. Say “Hi, I’d like to book a table for two tomorrow at 7 pm.” Check that the reply confirms the date, the time, and the number of guests.

Review what the agent heard

In the test result, each Listen action shows the transcript of what the agent heard, how long the audio was, the reply time for calls, and a player for the recorded audio. Each spoken turn shows the text the agent said, with its own player.

Limitations

  • Voice & Audio is available for web tests only. Mobile app tests have no microphone input. See Mobile App Testing.
  • The agent gets a transcript of the speech it heard, not the sound itself, so it cannot check tone, voice quality, or sounds without speech, such as music.