Search found 2 matches
- 2024-11-12 3:35
- Forum: LuckFox Pico
- Topic: luckfox pico ultra w使用sample_ai_aenc直接录制音频再用ffmpeg播放有很大杂音
- Replies: 2
- Views: 421
Re: luckfox pico ultra w使用sample_ai_aenc直接录制音频再用ffmpeg播放有很大杂音
测试了一下使用arecord -f S16_LE -c 2 -r 16000 -D hw:0 -d 30 test.wav录制,再用aplay -Dhw:0 test.wav播放是可以的。 但是使用rk_mpi_ai_test --sound_card_name=hw:0,0 --device_rate=16000 --device_ch=2 --out_rate=16000 --out_ch=2 --output=/tmp 用rk_mpi_ao_test -i /tmp/2.pcm --sound_card_name=hw:0,0 --device_ch=2 --device_rate=16...
- 2024-11-12 1:54
- Forum: LuckFox Pico
- Topic: luckfox pico ultra w使用sample_ai_aenc直接录制音频再用ffmpeg播放有很大杂音
- Replies: 2
- Views: 421
luckfox pico ultra w使用sample_ai_aenc直接录制音频再用ffmpeg播放有很大杂音
1.使用固件自带的sample_ai_aenc程序,sample_ai_aenc -d default:CARD=hw:0,0 -w 16bit -R 16000 -r 16000 -C 2 -c 2 -e g711a -o /data/直接录制音频,生成的音频文件在ffmpeg杂音很大。 2.#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <pthread.h> #include "audio.h" #include "sample_c...