TFTP 0x82000000 Uimage;bootm 0x82000000
Note:bootargs must be re-equipped to continue to go down, obviously, after entering Linux, the original product (Chongmai module) generally banned the console.
A certain condition is required to successfully enable ECHO Cancellation: Mono mode with a sample rate of 8kHz and a sampling accuracy of
16bit, frame length of 80 or 160 sample points, and mic acquisition of voice data AI and remote voice playback AO
The configuration frame length must be the same.
When you start resampling, you cannot use the EC function. What the hell is going on with this resample. I guess it's just for digital audio.
Problem: Staioattr.u32ptnumperfrm = 320; This is the minimum value, and if set to 160, an error occurs when configuring Aichn. If so, how does the Echo cancellation function EC work?
Here are two tests:
1, Gs_bmicin=1, recorded as PCM listen.
#./sample_audio 1
/************************************/
Press sample command as follows!
1:send audio frame to Aenc channel form AI, save them
2:read audio stream from File,decode and send AO
3:start AI to AO Loop
Q:quit Whole Audio sample
Sample Command:1
Ai (0,0) bind to aencchn:0 ok!
Please press twice ENTER to exit this sample
Test result: the same. It seems that the HiSilicon SDK does not differentiate between mic and LineIn (select) is true.
2, play 44100 acquisition rate (Hz) of AAC audio, and then use Sample_audio sampling test.
#./sample_audio 1
/************************************/
Press sample command as follows!
1:send audio frame to Aenc channel form AI, save them
2:read audio stream from File,decode and send AO
3:start AI to AO Loop
Q:quit Whole Audio sample
Sample Command:3
AI (0,0) bind to AO (0,0) ok
Please press twice ENTER to exit this sample
Result: The saved AUDIO_HISI.PCM play normally. This means that the input is PCM and the AI has resampled. This is more confused about what resample means. Dizzy.
I modified the Sample_audio.
./sample_audio 1//0:linein,1:mic
Save the AI sampled PCM data under the current directory, AUDIO_HISI.PCM
It is recommended to test with 3:start AI to AO Loop. This is the loopback that aenc/adec around the open.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.