我使用的sdk为V853 AI课程配套Tina4 SDK。使用的硬件为课程配套V853开发板,我想要测试一下AEC效果,根据文档提示编译运行了external/eyesee-mpp/middleware/sun8iw21/sample/sample_aec例程。程序运行结束后输出的ai_cap.wav只有一个wav头44byte大小。我尝试在保存wav的线程里加了一些debug日志,结果发现拿不到音频帧AiSaveDataThread: AW_MPI_AI_GetFrame timeout, buffer empty.。请问运行这个aec例程应该如何修改音频配置。我在menuconfig下勾选了 aec 模块,我当前的asound.conf配置如下:
pcm.!default {
type asym
playback.pcm “hw:{CARD=audiocodec, DEV=0}”
capture.pcm “hw:0,0”
}
pcm.PlaybackRateDmix {
type plug
slave {
pcm {
type dmix
ipc_key 1111
ipc_perm 0666
slave {
pcm “hw:0,0”
format S16_LE
rate 16000
channels 1
period_size 1024
periods 8
}
}
}
rate_converter “linear”
}
#pcm.resample rely on alsa-plugin and libspeexdsp. Select them in menuconfig if we want to use plugin pcm.resample.
pcm.resample {
type plug
slave {
pcm “hw:0,0”
format S16_LE
rate 16000
channels 1
}
rate_converter “speexrate”
}
pcm.CaptureMic {
type hooks
slave.pcm “hw:0,0”
hooks.0 {
type ctl_elems
hook_args [
{
name “MIC1 Switch”
preserve true
optional true
value 1
}
]
}
}
pcm.eq {
type awequal
slave.pcm “hw:0,0”
config_file “/etc/awequal.conf”
tuning_support true
verbose true
}