So i have managed to get input from a microphone using I2S interface following this link . https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-and-test
if i use the following command to record audio and then playback.. the volume level is pretty high: arecord -D dmic_sv -c2 -r 48000 -f S32_LE -t wav -V mono -v recording.wav
Note: the Alsamixer mic volume is 100% . and the i2s driver installed doesnt come with a volume control feature. Hence I use a soft_vol config in the ~/.asoundrc for the volume ctrl of the mic .
The problem begins here . I am using the pyaudio module for python to record the stream . It gets recorded all fine But the volume is too low . Is there a way to turn it up a bit .