Rockchip · AI & Linux Hub

Display & audio

ArmSoM microphone array testing: loudspeakers, recording consistency and voice functions

Test Rockchip microphone arrays for clipping, THD, SNR, sealing, channel consistency and echo cancellation, with nine figures and a 12-item acceptance checklist.

Recording sound is only the beginning of microphone-array development. Voice terminals, conference devices and products with a loudspeaker also need to answer three questions: does maximum playback volume clip the recording, do the microphone channels have consistent gain and delay, and can the processing remove playback echo while preserving the person speaking?

This guide turns the complete technical workflow in Rockchip’s Microphone Array Test Reference V1.1.0 (RK-KF-SF-002, 2025-05-08) into practical checks. It covers the environment, loudspeaker, microphones, voice functions and acceptance checklist. The source method is not tied to a kernel version; capture channels, drivers, formats and algorithm settings still depend on the project. Thresholds are the source document’s reference requirements. Illustrations are source examples, not measurements performed by ArmSoM.

1. Prepare the environment, instruments and audio

1.1 Keep the environment consistent

Local background noise must be below 40 dB, with a reverberation time of 200–500 ms and no obstructions around the device under test. THD and signal-to-noise measurements require a semi-anechoic or fully anechoic chamber, as described below.

For reproducible work, record the device and hardware revision, microphone model and spacing, enclosure and acoustic ports, firmware, sample rate, bit depth, channel count and gain settings. Keep these conditions consistent throughout a test round. Save unprocessed multichannel recordings and, during functional tests, the processed output as well. This additional engineering practice helps separate hardware problems from processing problems.

1.2 Instruments

  • High-fidelity loudspeaker: the source recommends the Genelec G series as the external sound source.
  • Sound level meter: Class 2 or better, measured at the microphone position.
  • Audio analysis software: Adobe Audition for waveforms, spectra, RMS values and channel delays.

Acoustic sound pressure and digital dBFS are different quantities. A-weighting is specified only where the source explicitly uses dBA. Other acoustic limits retain its dB notation; document the meter settings used in your own measurements.

1.3 Test audio

Filename Purpose
swp_48k_16b.wav Sweep, THD, frequency response, clipping and amplitude consistency
white_noise.wav Sealing, signal-to-noise ratio and sound-pressure checks
Sine1k_48k_16b.wav 1 kHz sine wave for delay and phase consistency
mute.wav Playback-reference noise floor during silent playback
human_voice_1_48k_2chan.wav One speech source for functional tests
human_voice_2_48k_2chan.wav The other speech source for functional tests

These are the filenames specified by the source. The PDF does not include the WAV files. Obtain them through the appropriate SDK or support channel and verify their format before testing; the names are not download links.

2. Loudspeaker tests: protect the capture path

Skip loudspeaker tests if the product has no playback function.

2.1 Maximum power and clipping

At maximum loudspeaker power, microphone data must remain unclipped and the sound pressure measured at the microphone must not exceed 90 dB.

  1. Set volume to 100%, play swp_48k_16b.wav and save the microphone recording.
  2. Inspect the sweep waveform in Audition and check every frequency region for clipping.
  3. At 100% volume, play white_noise.wav and confirm that sound pressure at the microphone does not exceed 90 dB.
  4. If clipping occurs, identify the level at which it begins and reduce loudspeaker power until the waveform is clean. Also reduce power and repeat the test if pressure exceeds 90 dB.

Figure 1: clipped waveform (left) and normal waveform (right)

Figure 1: clipped waveform (left) and normal waveform (right)

A single frequency or a listening check can miss a frequency-dependent overload. The sweep illustration shows how the recorded amplitude changes with stimulus level.

Figure 2: sweep signals at different levels

Figure 2: sweep signals at different levels

2.2 Loudspeaker total harmonic distortion

The source specifies these THD requirements at maximum playback volume:

Test frequency THD requirement
100 Hz Below 10%
200 Hz Below 6%
350 Hz and above Below 5%

If low-frequency distortion exceeds 10%, the source suggests considering a filter to remove the low-frequency component. Recheck frequency response and speech quality after adjustment, rather than judging the change only by the THD number.

Calculate THD from the RMS amplitudes of the fundamental and harmonics:

THD = sqrt(Σ(i=2…m) (Gi / G1)²)
THD(%) = THD × 100%

G1 is the fundamental RMS amplitude, Gi is the RMS amplitude of harmonic i, and m is the highest harmonic included. In a semi-anechoic or fully anechoic chamber, play the sweep through the device’s loudspeaker and record it with an external microphone. Extract the fundamental and harmonic levels at each frequency and calculate THD. If the result fails the limits, adjust the loudspeaker or EQ and repeat.

Without professional equipment, Audition can provide a rough estimate from the fundamental and first few harmonics. The source example assumes a fundamental of −30 dB, a second harmonic of −64 dB, and a third harmonic of −46 dB, ignoring the remaining harmonics:

THD = sqrt(10^((-64 − (-30))/10) + 10^((-46 − (-30))/10))
    = sqrt(10^-3.4 + 10^-1.6)
    ≈ 0.16 ≈ 16%

This is a calculation example, not a passing result. Repeat at multiple frequencies and connect the values to obtain a THD curve and identify the troublesome bands.

Figure 3: spectrum and harmonic analysis of a sweep

Figure 3: spectrum and harmonic analysis of a sweep

2.3 Playback-reference noise floor

The playback reference is the signal supplied to echo cancellation. Check both operating states separately:

  • Play mute.wav, record the reference channel and confirm a noise floor below −65 dBFS.
  • Stop playback, record the reference channel again and confirm a noise floor below −65 dBFS.

Keeping separate results avoids missing noise that appears only when the playback path is active.

3. Basic microphone tests: clipping, SNR and sealing

3.1 Internal and external sound sources

With the internal loudspeaker at maximum volume, the sweep must produce no microphone clipping and sound pressure at the microphone must not exceed 90 dB. Then position an external loudspeaker 1 m from the array. At a measured microphone-position pressure no higher than 90 dB, verify that its recording also remains unclipped.

Test both paths: an internal and an external source can excite the enclosure and capture chain differently.

3.2 Full-band signal-to-noise ratio

This test evaluates the capture conditions of the assembled system. Its result must not be equated directly with a microphone component’s datasheet SNR.

  1. In a semi-anechoic or fully anechoic chamber, play white noise through the high-fidelity loudspeaker.
  2. Adjust the microphone-position sound pressure to 63 dBA and record 10 s.
  3. Stop the source and record another 10 s.
  4. Compare the active and silent segment energies in Audition to determine full-band SNR. The source requires a value above 20 dB.

Figure 4: SNR analysis of active and silent segments

Figure 4: SNR analysis of active and silent segments

3.3 Acoustic sealing and attenuation

This test measures how strongly the received signal falls when the microphone port is blocked, helping assess the acoustic seal.

  1. Position the external loudspeaker 1 m from the microphone and play white noise.
  2. Set sound pressure at the microphone to approximately 80 dB.
  3. Keep playback running and block each MIC port in turn with black adhesive or rubber sealing material, for about 10 s per port.
  4. Compare recorded RMS levels before and after blocking. The source requires at least 15 dB of isolation.

Identify each port and its recording channel. Blocking the whole enclosure and recording one overall result does not replace the per-microphone check.

Figure 5: sealing test with microphone ports blocked in turn

Figure 5: sealing test with microphone ports blocked in turn

4. Array consistency: amplitude, delay and channel order

4.1 Amplitude and frequency response

Microphones receiving the same signal should produce approximately equal amplitudes. Play swp_48k_16b.wav at 100% volume and compare all MIC channels simultaneously. Figure 6 is a failing example of amplitude consistency.

Figure 6: failing example of amplitude consistency

Figure 6: failing example of amplitude consistency

If particular frequency bands differ, measure each microphone’s frequency response. The source requires differences between microphones to remain within ±1 dB. This is a channel-consistency requirement; the example curve below is not a complete target response for every product.

Figure 7: example microphone frequency response

Figure 7: example microphone frequency response

4.2 Phase and delay consistency

Different arrival angles can produce different delays between microphones. Once source and array positions are fixed, those delays should remain stable.

The source uses a two-microphone linear array with 3.5 cm spacing. Angles are referenced to the array axis:

Arrival direction Expected time difference Delay at 48 kHz
90°, facing the array center Approximately 0 ms Approximately 0 samples
0°, arriving from one side Approximately 0.103 ms Approximately 5 samples

Place the source 1 m away, first facing the center and then from the side. Play a 1 kHz sine wave and calculate inter-channel delays. Figure 8 illustrates how to read a waveform delay; its marked 4 sample intervals are illustrative and do not replace the geometric values in the table.

Figure 8: phase consistency and waveform delay

Figure 8: phase consistency and waveform delay

4.3 Channel order

For a physical left-to-right sequence MIC 1, 2, 3, 4 and playback references 5, 6, the source permits forward or reverse MIC order, with the reference group before or after it:

[MIC1, MIC2, MIC3, MIC4, REF5, REF6]
[MIC4, MIC3, MIC2, MIC1, REF5, REF6]
[REF5, REF6, MIC1, MIC2, MIC3, MIC4]
[REF5, REF6, MIC4, MIC3, MIC2, MIC1]

Choose and document one arrangement and match the algorithm configuration to it. Merely counting six channels is insufficient: distinguish microphones from playback references and preserve the physical microphone sequence.

Figure 9: playback-reference and MIC channel order

Figure 9: playback-reference and MIC channel order

5. Functional tests: pickup, localization, wake word and talk states

Start algorithm tests after the microphone and loudspeaker checks. Use human_voice_1_48k_2chan.wav and human_voice_2_48k_2chan.wav: the external loudspeaker represents near-end speech, while the device loudspeaker represents the remote participant.

5.1 Pickup range and AGC

This test establishes the useful pickup region and automatic gain control settings. Play speech or the appropriate wake-word stimulus through the external loudspeaker. At the distances, levels and angles specified for the product, record the signal and check that processing provides the intended speech gain.

The product requirements define these positions and levels; the source does not prescribe a universal pickup distance. If speech is suppressed or not amplified properly inside the specified region, adjust agc according to the matching algorithm documentation. Supply raw recordings when requesting Rockchip assistance.

5.2 Direction of arrival

If the product requires localization, perform this test alongside pickup testing. Play speech or a wake-word stimulus at the required distance, level and angle, and compare the reported direction with the actual position.

For clearly incorrect directions, first check microphone dimensions, spacing, assembly and channel mapping. If direction is broadly correct but accuracy is inadequate, tune DOA using the relevant documentation. The source limits this test to configurations with at least two microphones. Keep raw data for support.

5.3 Wake-word recognition

If wake-word functionality is required, external loudspeaker one plays the wake word and external loudspeaker two plays interference. Test recognition at the product’s specified distances, levels and angles. Do not place the two external sources at the same azimuth: that would undermine the spatial discrimination being evaluated.

The source’s wake-word implementation has no parameters to tune through this procedure; provide raw failure samples to Rockchip. This statement describes that implementation, not every wake-word SDK.

5.4 Single-talk and double-talk

After pickup testing, run these three stages in order within one test session:

Stage External loudspeaker Device loudspeaker What to inspect
Near-end single-talk Pure speech one Silent; device records only Near-end speech retention and gain
Far-end single-talk Silent Pure speech two Removal of playback echo
Double-talk Speech one Speech two simultaneously Near-end speech retained while echo is suppressed

The source prioritizes clean single-talk echo cancellation, then preserving as much double-talk speech as possible. “Clean cancellation” refers to far-end playback echo, not deleting near-end speech. If double-talk speech is suppressed or gain is inadequate within the required pickup region, adjust aes using the companion documentation and save raw recordings for diagnosis.

6. Reusable 12-item acceptance checklist

The table preserves the source’s 12 items and stimulus fields. Leave results empty until testing and then record PASS/FAIL. An example illustration or an unperformed test is not a pass.

Test item Test audio Result PASS/FAIL
Power test swp_48k_16b.wav
white_noise.wav
 
Loudspeaker THD swp_48k_16b.wav  
MIC channel clipping swp_48k_16b.wav  
Signal-to-noise ratio white_noise.wav  
Acoustic sealing white_noise.wav  
Amplitude consistency swp_48k_16b.wav  
Phase consistency Sine1k_48k_16b.wav  
Microphone channel order    
MIC/reference-channel DC offset    
Playback-reference noise floor    
Fixed-frequency interference    
Assembly vibration/resonance/abnormal noise    

The source lists DC offset, fixed-frequency interference and assembly vibration/resonance/abnormal noise without numerical limits. Define their acceptance criteria in the project test plan. The original playback-reference noise row has an empty stimulus field; execute it using the silent-playback and stopped-playback states in section 2.3.

Also record conditions, per-channel measurements, recording filenames, failure symptoms, changes and retest results. The referenced 需求模板语音算法rk3xxx_xx客户.xlsx is not included in this PDF; the editable table above provides a starting point for your own records.

7. Applying the workflow to an ArmSoM project

ArmSoM P2 Pro uses RK3308B-S. Its documentation lists MIC and PDM/I2S connections on the 40-pin header, making it a reference platform for capture projects. Check the official pin definitions, electrical requirements and capture configuration before connecting an array.

Organize development into three stages: verify recording and channel mapping on the wired board; fit the array and enclosure and test sealing, response and mechanical noise; then add the loudspeaker and processing for reference-channel, AEC, AGC, localization and double-talk checks. Repeat affected tests after changing microphones, amplification, enclosure or gain. This is an implementation recommendation, not a claim that the board has passed these acceptance limits.

Product resources and further reading:

The source also references Rockchip_Developer_Guide_Audio_Algorithm_Effect_Tuning_CN.pdf and Rockchip_Developer_Guide_Audio_Algorithm_VQE_Introduction_CN.pdf for parameter details. Match those instructions to the actual SDK interfaces and version. This guide establishes what to measure, how to measure it and how to record the result.

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

These models are linked for further platform reading; the examples are not claimed to be ported to them.

Explore this topic → · Learning paths →