Recording audio on M3+KF on AGL 6.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm looking into audio recording (to ultimately support voice commands) on an M3 with Kingfisher.  I'm trying to learn how 4A works, but haven't seen much about microphones, line in, or recording.  And initially, I'm just trying to get any input using command line tools like arecord, parec, etc.  However, I'm not having any luck.  


If I do "arecord -l", I see many devices listed (see below), with the device hw:2,0 ak4613 being most likely (to use the mic port on the M3 board).


But when I try:

arecord -D hw:2,0 -f S24_LE -c 2 -r 48000

it generates data, but all zeros.  


I've tried the other devices as well, and they either record null data or fail due to device open or device missing.


How can I record data on AGL 6 with 4A?  And are there any sample apps that record microphone input?


thanks

Jason Reich.


A full list of alsa recording devices on my system:


m3ulcb:/usr/libexec/agl/4a-hal/etc# arecord -l 
**** List of CAPTURE Hardware Devices ****
card 0: 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 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 5/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: pcm3168a [pcm3168a], device 0: rsnd-dai.0-pcm3168a pcm3168a-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: ak4613 [ak4613], device 0: rsnd-dai.1-ak4613-hifi ak4613-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: radio [radio], device 0: rsnd-dai.2-si468x-pcm si468x-pcm-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 4: wl18xx [wl18xx], device 0: rsnd-dai.3-wl18xx-pcm wl18xx-pcm-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0




_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux