本帖最后由 yzbx 于 2013-10-4 22:05 编辑
2013-10-04:- linaro@cubieboard:~$ alsamixer
- linaro@cubieboard:~$ aplay -l ###列出音频输出设备
- **** List of PLAYBACK Hardware Devices ****
- card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
- Subdevices: 1/1
- Subdevice #0: subdevice #0
- card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
- Subdevices: 1/1
- Subdevice #0: subdevice #0
- linaro@cubieboard:~$ arecord -l ###列出音频输入设备
- **** List of CAPTURE Hardware Devices ****
- card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
- Subdevices: 1/1
- Subdevice #0: subdevice #0
- card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
- Subdevices: 1/1
- Subdevice #0: subdevice #0
- linaro@cubieboard:~$ aplay -f CD --device=plug:hw:1 Music/eat.wav ###用CD格式,设备card1播放音频 eat.wav
- Playing WAVE 'Music/eat.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
- linaro@cubieboard:~$ arecord -f CD --device=plug:hw:1 -d 5 Music/test.wav <font color="Blue"> -d 5 ==录音5秒</font>
- Recording WAVE 'Music/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
- linaro@cubieboard:~$ cat /etc/asound.conf ###默认音频设置
- pcm.!default{
- type hw
- card 1
- device 0
- }
- ctl.!default{
- type hw
- card 1
- }
- linaro@cubieboard:~$
复制代码 2013-8-11: 想做语音识别,用个电脑专用麦克风,再用麦克风自带的输出线输入音频信号,请问可行么?
|