10.6. Related Tests¶
10.6.1. Unit Test¶
Test purpose: the Audio AEC function test |
---|
Test module: Audio VQE - AEC |
Test method: sample_audio_aec $(filename) |
Note:Users can use the cvi_aec_test program to convert recorded audiofiles (raw or .wav) with echo to audio files with echo cancelled.Please note that this function only supports sampling rates of 8kHzand 16kHz, and the format must be S16LE. |
Test purpose: Audio Codec function test |
---|
Test module: Audio Encode/Decode |
Test method: sample_audio_transcode $(filename) |
Note:Users can convert audio raw data to g.711/g.726 files throughsample_audio_transcode. Please note that this function only supports8kHz and 16kHz sampling rates, and its format must be S16LE. |
10.6.2. Functional Test¶
Test purpose: Audio Recording function test |
---|
Test module: Audio In |
Test method: sample_audio 4 |
./sample_audio 4 –list -r 8000 -R 8000 -c 2 -p 320 -C 0 -V 0 -FCvi_8k_2chn.raw -T 10 |
Test purpose: Audio broadcasting function test |
---|
Test module: Audio Out |
Test method: sample_audio 5 |
./sample_audio 5 –list -r 8000 -R 8000 -c 2 -p 320 -C 0 -V 0 -FCvi_8k_2chn.raw -T 10 |
Test purpose: Audio resampling test |
---|
Test module: Audio Resample |
Test method: sample_audio_resample (input _raw format file) (inputfile sample rate) (target sample rate) |
Note:Examples are as follows:sample_audio_resample record.raw 16000 48000As shown above, the user inputs the raw file in order. The programwill resample the file according to the current sampling rate andtarget sampling rate of the file according to the API inlibcvi_RES1.so. After that, the raw file starting with the outputsampling rate will be output. |
Test purpose: Audio output volume setting and test |
---|
Test module: Audio Output Volume(DAC codec) |
Test method: (set volume): sample_audio 6 (Get the current output volume): sample_audio 8 |
Note:Users can set the volume through sample audio 6. |
10.6.3. Performance Test¶
Test purpose: test the function of Audio quality enhancement, andmeasure the corresponding ability of speech algorithm according toparameter adjustment. |
---|
Test module:: Audio VQE |
Test method: sample_audio_nr $(filename) |
|