반응형


arecord 를 쓸라면


 lionelj  lionelj-Desktop  ~  $  arecord -l

**** CAPTURE 하드웨어 장치 목록 ****

0 카드: PCH [HDA Intel PCH], 0 장치: ALC887-VD Analog [ALC887-VD Analog]

  하위장치: 1/1

  하위장치 #0: subdevice #0

0 카드: PCH [HDA Intel PCH], 2 장치: ALC887-VD Alt Analog [ALC887-VD Alt Analog]

  하위장치: 1/1

  하위장치 #0: subdevice #0

2 카드: I48K [I2S RX 16K TX 48K], 0 장치: USB Audio [USB Audio]  <<=== 이거 쓸라면

  하위장치: 1/1

  하위장치 #0: subdevice #0


요렇게 확인을 먼저 한다음에 


2카드 에 0장치니까 2,0 이 된다.


arecord ./testho.wav -D hw:2,0 -r 44100 -c 2 -f S16_LE  


이렇게 해주면 됨.




arecord --list-devices


arecord -f S16_LE -r 16000 -D hw:2,0 -d 5 -c 2 testS16_LE.wav


-c 채널 개수

-D 디바이스 이름

-f 포맷

-r sample rate

-t 타입 (voc, wav, raw, au)






aplay


리스트 확인하기


# aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: AMLAXGSOUND [AML-AXGSOUND], device 0: TDM-A-dummy multicodec-0 []

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 0: AMLAXGSOUND [AML-AXGSOUND], device 1: TDM-B-tlv320adc3101-hifi tlv320adc3101-hifi-1 []

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 0: AMLAXGSOUND [AML-AXGSOUND], device 2: TDM-C-tas5707 multicodec-2 []

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]

  Subdevices: 8/8

  Subdevice #0: subdevice #0

  Subdevice #1: subdevice #1

  Subdevice #2: subdevice #2

  Subdevice #3: subdevice #3

  Subdevice #4: subdevice #4

  Subdevice #5: subdevice #5

  Subdevice #6: subdevice #6

  Subdevice #7: subdevice #7

card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]

  Subdevices: 8/8

  Subdevice #0: subdevice #0

  Subdevice #1: subdevice #1

  Subdevice #2: subdevice #2

  Subdevice #3: subdevice #3

  Subdevice #4: subdevice #4

  Subdevice #5: subdevice #5

  Subdevice #6: subdevice #6

  Subdevice #7: subdevice #7


Amloagic 보드는

# aplay /data/piano2.wav -D hw:0,2 -r 48000 -c 2

Playing WAVE '/data/piano2.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo

반응형

'Linux > Linux 일반' 카테고리의 다른 글

ibus 한글 띄어쓰기 이상할 때  (0) 2017.09.21
watchdog app  (0) 2017.01.17
Ubuntu 16.04 LTS ethernet Network 802.1x connect failed.  (0) 2016.07.14
Posted by Real_G