TK1入门教程硬件篇-声音播放和录制
TK1入门教程硬件篇-声音播放和录制
说明:
- 介绍如何使用TK1的声音播放和录制
- TK1的音频口,上为话筒,下为听筒
声音播放:
- 如果不能正常播放声音,在终端下执行如下命令,进行修复:
amixer cset name="Stereo ADC MIXL ADC2 Switch" 0
amixer cset name="Stereo ADC MIXR ADC2 Switch" 0
amixer cset name="Int Mic Switch" 0
amixer cset name="ADC Capture Switch" 1
amixer cset name="RECMIXL BST1 Switch" 0
amixer cset name="RECMIXR BST1 Switch" 0
amixer cset name="RECMIXL BST2 Switch" 1
amixer cset name="RECMIXR BST2 Switch" 1
amixer cset name="Stereo ADC L1 Mux" "ADC"
amixer cset name="Stereo ADC R1 Mux" "ADC"
amixer cset name="Stereo ADC MIXL ADC1 Switch" 1
amixer cset name="Stereo ADC MIXR ADC1 Switch" 1
amixer cset name="Stereo ADC MIXL ADC2 Switch" 0
amixer cset name="Stereo ADC MIXR ADC2 Switch" 0
amixer cset name="IN1 Mode Control" "Single ended"
amixer cset name="IN2 Mode Control" "Single ended"
amixer cset name="Mic Jack Switch" 1
播放测试:
- 下载测试音频到TK1:
cd ~/Music/
wget http://file.ncnynl.com/ros/tada.wav
- 安装播放器:
sudo apt-get install mplayer2
- 接上耳机,上为话筒,下为听筒。
- 或者连接到蓝牙耳机或音响
- 播放音乐:
cd ~/Music/
mplayer tuda.wav
参考:
- http://www.68idc.cn/help/buildlang/ask/20150318283344.html
- http://www.elinux.org/Jetson/Audio
- https://devtalk.nvidia.com/default/topic/772401/embedded-systems/audio-input-on-jetson-tk1/
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号