Difference between revisions of "ROM-6881 Audio"
From ESS-WIKI
Xingxing.li (talk | contribs) (Created page with " === '''Audio Test''' === Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below: F...") |
Xingxing.li (talk | contribs) |
||
| Line 4: | Line 4: | ||
Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below: | Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below: | ||
| − | [[File:ROM-6881 Audio.png]] | + | [[File:ROM-6881 Audio.png|RTENOTITLE]] |
'''1、Get Audio board ID''' | '''1、Get Audio board ID''' | ||
| − | <pre> | + | <pre>cat /proc/asound/cards |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</pre> | </pre> | ||
| + | <pre>0 [rockchiprt5640c]: rockchip_rt5640 - rockchip,rt5640-codec rockchip,rt5640-codec | ||
| + | 1 [rockchiphdmi0 ]: rockchip-hdmi0 - rockchip-hdmi0 rockchip-hdmi0 | ||
| + | 2 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0 rockchip-dp0s</pre> | ||
'''2、Record''' | '''2、Record''' | ||
Take Card ID 0 for example: | Take Card ID 0 for example: | ||
| − | <pre> | + | <pre>arecord -Dplughw:0,0 -f S16_LE -r 16000 -d 10 -t wav test.wav |
</pre> | </pre> | ||
| Line 25: | Line 22: | ||
Take Card ID 0 for example: | Take Card ID 0 for example: | ||
| − | <pre> | + | <pre>aplay -Dplughw:0,0 -t wav test.wav |
</pre> | </pre> | ||
'''RK Tool Function:''' | '''RK Tool Function:''' | ||
| − | <pre> | + | <pre>/tools/test/adv/audio/audio_record_test.sh 1 |
| − | + | /tools/test/adv/audio/audio_play_test.sh 1 | |
</pre> | </pre> | ||
Revision as of 02:10, 23 July 2025
Audio Test
Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below:
1、Get Audio board ID
cat /proc/asound/cards
0 [rockchiprt5640c]: rockchip_rt5640 - rockchip,rt5640-codec rockchip,rt5640-codec 1 [rockchiphdmi0 ]: rockchip-hdmi0 - rockchip-hdmi0 rockchip-hdmi0 2 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0 rockchip-dp0s
2、Record
Take Card ID 0 for example:
arecord -Dplughw:0,0 -f S16_LE -r 16000 -d 10 -t wav test.wav
3、Playback
Take Card ID 0 for example:
aplay -Dplughw:0,0 -t wav test.wav
RK Tool Function:
/tools/test/adv/audio/audio_record_test.sh 1 /tools/test/adv/audio/audio_play_test.sh 1
