# Base image for Raspberry Pi 3 B+, speaker bonnet, I2S microphone and camera

**URL:** <https://forums.balena.io/t/base-image-for-raspberry-pi-3-b-speaker-bonnet-i2s-microphone-and-camera/323370>\
**Category:** Project help\
**Tags:** raspberrypi3\
**Created:** [June 3, 2021, 1:54pm UTC](https://forums.balena.io/t/base-image-for-raspberry-pi-3-b-speaker-bonnet-i2s-microphone-and-camera/323370 "2021-06-03T13:54:28Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![tmigone](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tmigone/32/2814_2.png) [@tmigone](https://forums.balena.io/u/tmigone)\
**Post date:** [July 8, 2021, 6:13pm UTC](https://forums.balena.io/t/base-image-for-raspberry-pi-3-b-speaker-bonnet-i2s-microphone-and-camera/323370/17 "2021-07-08T18:13:51Z")

</div>

@bulgy, yes I think it’s better to create a fresh thread for the I2S microphone so we keep things separated (if you haven’t already).

Regarding the popping/clipping sound, I took a look at the tutorial you linked. They way they solve it seems a bit hacky but it should work for the audio block too. Basically they install a service that continuously outputs a “silent” sound. Looking at the install script they provide [here](https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh) the command is: `/usr/bin/aplay -D default -t raw -r 44100 -c 2 -f S16_LE /dev/zero &`. You could add this to your start script, make sure you include the `&` so it runs in the background and doesn’t halt your main process, however this probably can’t be done from the audio block’s entry point as `aplay` will need the PuseAudio instance to be running, so you should look into running it from another service.

Another alternative you can try is disabling PulseAudio’s “suspend-on-idle” module. This module “Disconnects sinks and sources from their backend after a predetermined amount of idle time.”, I suspect this might be interfering in your case. To disable it check out the audio block’s script [here](https://github.com/balenablocks/audio/blob/master/entry.sh#L176-L180), you’ll need to add a line to disable “module-suspend-on-idle”.

---

_[View the full topic](https://forums.balena.io/t/base-image-for-raspberry-pi-3-b-speaker-bonnet-i2s-microphone-and-camera/323370)._
