8,367
edits
Changes
Created page with "1) There is an onboard MIC on the development board, the location is as follows:<br><br> Image:Pi-5-details2-pic16.png<br><br> 2) Running the '''test_record.sh main''' c..."
1) There is an onboard MIC on the development board, the location is as follows:<br><br>
[[Image:Pi-5-details2-pic16.png]]<br><br>
2) Running the '''test_record.sh main''' command will record a piece of audio through the onboard MIC, and then play it to HDMI and headphones<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''test_record.sh main'''<br>
Start recording: /tmp/test.wav<br>
Recording WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Start playing<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
|}
3) In addition to the onboard MIC, we can also record audio through headphones with MIC function. After inserting the headset with MIC function into the development board, run the '''test_record.sh headset''' command to record a piece of audio through the headset, and then play it to HDMI and the headset.<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''test_record.sh headset'''<br>
Start recording: /tmp/test.wav<br>
Recording WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Start playing<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
|}
[[Image:Pi-5-details2-pic16.png]]<br><br>
2) Running the '''test_record.sh main''' command will record a piece of audio through the onboard MIC, and then play it to HDMI and headphones<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''test_record.sh main'''<br>
Start recording: /tmp/test.wav<br>
Recording WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Start playing<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
|}
3) In addition to the onboard MIC, we can also record audio through headphones with MIC function. After inserting the headset with MIC function into the development board, run the '''test_record.sh headset''' command to record a piece of audio through the headset, and then play it to HDMI and the headset.<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''test_record.sh headset'''<br>
Start recording: /tmp/test.wav<br>
Recording WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Start playing<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo<br>
Playing WAVE '/tmp/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
|}