Connect mic through I2S

Hi, I have bought a MEMs breakout board from adafruit (https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/overview) and connected it to the I2S headers found on J21A on the Development Kit.

I have connected the pins on the J21A header as follows;
3.3V on pin 1
GND on pin 39
BCLK on pin 12
DOUT on pin 40 and
LRCL on pin 35

Then I used the following to record the sound;
gst-launch-1.0 audiotestsrc ! ‘audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)44100, channels=(int)2’ ! voaacenc ! qtmux ! filesink location=test.mp4 -e

but I just get a loud beep as recording.

I would be grateful if somebody could help me.

Am I connecting the microphone wrong? or should I change the channel or do some software configuration prior to start encoding the audio?

Thank you

I cannot tell how to get audio in your case, but audiotestsrc is a plugin for test, not for audio capture: https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-audiotestsrc.html.

Hi Devashish,

Since yours is microphone, why you connect its DOUT to pin40 (Audio_I2S_SOUT)?

@Honey_patouceul Thanks for pointing that out. I was just trying the audio encode that was mentionned on the gstreamer guide. Please let me know if you find a way for doing audio capture in my case.

@Trumany Thanks for pointing that out. I have changed that to pin 38 (Audio_I2S_SIN). How should I proceed to record the audio?

I saw a pdf file of kernel compiling in your link, did you try that?
https://cdn-learn.adafruit.com/downloads/pdf/adafruit-i2s-mems-microphone-breakout.pdf

I checked it and it described how to do it for Arduino and Raspberry pi. Am not sure I can use the same steps as the one described for the raspberry pi

Hi Devashish,

Did you manage to get i2s mic working with TX2 dev kit ?

Trivikram.