Audio/MIC
<h4>一、Audio测试</h4>
<p>方法① – 使用系统自带SMPayer播放器,以及音频测试文件,可以做简单音频功能测试
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=7b353e4f1854e215eb8d1b040248c225&amp;file=file.png" alt="" /></p>
<p>方法② – 使用命令方式播放:</p>
<pre><code class="language-shell">aplay /nodka_test/LR_audio.wav -D hw:0,0</code></pre>
<h4>二、添加音频文件的声音大小</h4>
<pre><code class="language-shell">sudo apt install ffmpeg
ffmpeg -i input.mp3 -af &quot;volume=10dB&quot; output.mp3 (增大10分贝)</code></pre>
<h4>三、录音功能测试</h4>
<pre><code class="language-shell">arecord -d 5 -f cd -r 44100 -c 2 -t wav test.wav
aplay test.wav</code></pre>