测试过程如下(异常是没有获取到aec后的音频帧,所以结果文件ai_cap.wav只写了个44byte的wav头):
root@TinaLinux:/mnt/UDISK# ls
bg0.wav lost+found sample_aec sample_aec.conf
root@TinaLinux:/mnt/UDISK# cat sample_aec.conf
########### paramter (ref to tulip_cedarx.conf)############
[parameter]
pcm_src_path = "/mnt/UDISK/bg0.wav"
pcm_dst_path = "/mnt/UDISK/ai_cap.wav"
pcm_aec_path = "/mnt/UDISK/ai_aec.wav"
pcm_sample_rate = 16000
pcm_channel_cnt = 1
pcm_bit_width = 16
pcm_frame_size = 1024
aec_en = 1
aec_bypass = 0
ans_en = 1
ans_mode = 0
agc_en = 0
agc_gain = 0
add_wav_header = 1
root@TinaLinux:/mnt/UDISK# ./sample_aec -path sample_aec.conf
>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Media Process Platform<<<<<<<<<<<<<<<<<<<<<<<<<<<<
modName : MPP-Platform
tag : V1.0 Release
branch: v5-dev
commit: 4eed413532ad87725895a8cb1ba75e22fc328233
date : 20170725
author: jenkins
[ISP]>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<<
IPCORE: ISP600
branch: libisp-dev
commit: c3bfa4e23fb037123e65a04eaaa39f7876cfe1a6
date : Mon Apr 10 10:37:15 2023 +0800
author: <zhenghanjie@allwinnertech.com>
--------------------------------------------------------
I0101 08:27:30.621999 1359 hwdisplay.c:93] <hw_display_init>
I0101 08:27:30.622413 1359 hwdisplay.c:1008] <hwd_init> (hwd_init 1008)
I0101 08:27:30.622590 1359 hwdisplay.c:1063] <hwd_init> ret[0][2,0]ch[0]lyl[0] init: enable[0], screenwin[0,0, 0x0], zorder[0], alpha[mode:0, value:0]
I0101 08:27:41.067487 1359 hwdisplay.c:1077] <hwd_exit> (hwd_exit 1077)
root@TinaLinux:/mnt/UDISK# ls
ai_cap.wav lost+found sample_aec.conf
bg0.wav sample_aec
root@TinaLinux:/mnt/UDISK# ll ai_cap.wav
-rw-r--r-- 1 root root 44 Jan 1 08:27 ai_cap.wav
root@TinaLinux:/mnt/UDISK#