Audio framework CTS Verifier

This suite of audio tests requires human intervention and some external hardware, including an audio loopback dongle, a USB-to-analog adapter or interface, a USB reference microphone, and external speakers.

To access the tests on this page, follow the instructions in General instructions.

Loopback latency test

The Audio Loopback Latency Test measures the total time from the generation of an audio signal to the detection of that same signal. This time measurement is used as a proxy for measuring the overall latency of the audio system.

The latency is measured over several data paths, including: * speaker to microphone, * USB audio output to input, * 3.5 mm analog output to input if the device supports it.

Select peripherals

If the device has a 3.5 mm analog headset jack then you will need an audio loopback dongle or "plug". It contains electronics that route an audio output signal back to the audio input.

Audio loopback plug

Figure 1. Audio loopback plug

For testing USB, you have two choices. You can use an audio loopback dongle connected to a USB-to-analog adapter, shown here:

Audio loopback plug connected to USB-to-analog adapter

Figure 2. Audio loopback plug connected to USB-to-analog adapter

Or you can use a USB audio interface with cables that connect the output to the input.

These instructions are for the Presonus AudioBox USB 96 device: * Connect the Input 1 connector to Main Out L. * Connect the Input 2 connector to Main Out R. * Set the Input 1 knob to straight up. * Set the Input 2 knob to straight up. * Set the Phones knob to 0. * Set the Mixer knob to the far right for Playback. * Set the Main knob to about 45 degrees left of straight up (about 10:30 on a clock face).

USB audio interface, front

Figure 3. A USB audio interface with the correct settings

USB audio interface, top

Figure 4. A USB audio interface shown from above with the correct connections.

Run the test

After setting up your selected peripherals, run the Audio Loopback Latency Test to take measurements for the loopback latency on all paths supported by the DUT:

  1. Test the internal speaker to the internal microphone (speaker/mic route):

    • Perform this test in a quiet room.

    • Place the DUT flat on a table. If the DUT is in a case, you might need to remove that case.

    • Tap Start for the Speaker/Mic route. A series of noise bursts play, and at the end of the test process the results for the Speaker/Mic route display. You might need to adjust the volume to obtain a sufficient confidence value.

  2. Test the analog headset jack. (If the DUT doesn’t have an analog headset jack, skip this step.)

    • Insert the loopback plug into the analog headset jack on the DUT. This activates the Start button for this route.
    • Tap Start. The same series of noise bursts is routed through the headset jack and the latency is measured. You might need to adjust the volume to obtain a sufficient confidence value.
  3. Test the USB port. (If the DUT doesn’t have a USB port that implements USB host mode, skip this step.)

    • Connect the USB loopback device (adapter and loopback plug OR USB interface with appropriate loopback cables) to the DUT.
    • Tap Start. The same series of noise bursts are routed through the USB adapter/interface and the latency is measured. You might need to adjust the volume to obtain a sufficient confidence value.
  4. Report the results:

    • If all routes meet the criteria listed in the Android CDD, mark the test as passed.
    • If any route doesn’t meet the criteria, mark the test as failed.

Audio frequency line test

This test uses an audio loopback dongle to characterize the left and right line audio output from the 3.5 mm analog jack. It uses the mic feedback from the plug to capture audio and compute a frequency response for each channel.

A simple criterion for minimum energy expected in each band (out of four) is applied for each channel.

To run this test:

  1. Follow the General instructions to access the test.
  2. Tap YES or NO to report whether the device has a physical headset port. If it doesn't, mark the test as passed.

    audio frequency line

  3. Connect a loopback plug to the headset connector (see Loopback latency test).

  4. Tap LOOPBACK PLUG READY.

    loopback plug ready

  5. Tap TEST and wait for the test to complete.

  6. When the test is complete, view and the results on the test screen.

    testing complete

  7. Report a passed test by pressing the green check mark button, or a failed test by pressing the red X button.

Audio frequency speaker test

This test uses the signal captured by an external USB reference microphone to assess the speakers' frequency response.

A reference microphone delivers a flat, uncolored audio response. These microphones are often used for analysis and measurement equipment.

Minimum recommended reference microphone characteristics:

  • Flat frequency response on range 100 Hz - 20 kHz: +/- 2 dB S/N ration 70 dB (A-weighted)
  • THD ratio @ 1000 Hz less than 1% at 127 dB SPL

Recommended microphones include the miniDSP USB measurement calibrated microphone and the Dayton Audio UMM-6 USB Measurement Microphone.

To run the test:

  1. Connect a USB reference microphone to the DUT and place the microphone 20 cm away from the DUT and perpendicular to the center of the screen.

    device under test

  2. Tap USB REFERENCE MICROPHONE READY.

    mic ready

  3. Tap TEST and wait for the test to complete.

  4. When the test is complete, view and the results on the test screen.

  5. Report a passed test by pressing the green check mark button, or a failed test by pressing the red X button.

Audio frequency microphone test

This test requires both external speakers for a white noise sound source and a USB reference microphone to calibrate the DUT's internal microphone against. The speakers don’t need to have a “flat” frequency response, but they do need good coverage from low frequencies (100 Hz) to high frequencies (20 kHz).

To run the test:

  1. Report whether the DUT has a physical audio output port. If it doesn't, mark the test as passed.

    audio microphone test

  2. Position the speakers 40 cm perpendicular to the center of the screen of the DUT.

    device under test

  3. Connect external speakers to the DUT using the headphone or line out connector. Unplug any USB microphone connected to the DUT.

  4. Tap EXTERNAL SPEAKERS READY.

    testing underway

  5. Tap TEST 1 and wait for the test to complete. When the test is complete, results are shown on the test screen.

    test results

  6. Connect a USB reference microphone to the DUT. Keep the external speakers connected and position the microphone next to the DUT's internal microphone, pointed toward the external speakers.

    device position mic position

  7. Tap USB REFERENCE MICROPHONE READY.

    microphone ready

  8. Tap TEST 2 and wait for the test to complete. When the test is complete, results are shown on the test screen.

    testing completed

  9. Record the test results.

Audio frequency unprocessed test

This test requires a sound pressure level (SPL) meter in addition to a USB reference microphone and external speakers.

If the DUT has a definition for the Audio Frequency Unprocessed feature, all sections of this test must pass. If the DUT doesn't define this feature, the test can pass even if not all sections pass.

To run the test:

  1. Connect external speakers to the DUT using the headphone or line out connector. Unplug any USB microphone connected to the DUT.

    Photo of DUT setup

  2. To conduct the tone test:

    1. Tap PLAY.
    2. Move the SPL meter in front of the speakers until it detects a sound pressure level of 94 dB SPL.

    Photo of test tone setup

    1. Move the SPL meter back and forth in a straight line from the speakers in a straight line from the speakers. Make a note of this location.

    Photo of SPL meter placement

    1. Move the DUT and place the microphone in about the same location found in the previous step.
    2. Tap TEST. The DUT performs a short audio capture and automatically stops the playback. If necessary, you can also stop playback by tapping STOP.

Screenshot of audio capture

  1. To conduct the noise test:

    1. Position the speakers perpendicular to the center of the screen of the DUT and 40 cm away.

      Photo of speaker placement

    2. Tap PLAY.

    3. Tap TEST and wait for the test to complete. Playback stops automatically when the test is complete.

      Screenshot of running test

  2. To test USB background:

    1. Connect a USB Reference microphone to the DUT and position it close to the DUT's internal microphone.
    2. Tap TEST. This runs a short test and displays the results on screen.

Photo of USB reference mike Screenshot of running test

  1. To test USB noise:

    1. Place a USB microphone in the same position as in the previous test.
    2. Tap PLAY. The speakers play broadband noise.
    3. Tap TEST. This runs a short test and displays the results on screen.
  2. View the results for all four sections of the test. Repeat sections as needed.

    Test results

  3. Report a passed test by pressing the green check mark button, or a failed test by pressing the red X button.