Since a few weeks I have sonocotta’s louder-esp32 devices, starting with just three, I’ve recently upgraded to six devices, replacing my remaining Raspberry PI Zeros. Since the whole audio farm is uniform, I run sendspin as the protocol, coming from snapcast.

There were issues with snapcast, a dropout of music every few minutes, and I assumed it would be good with sendspin. However that has not been the case, the same issue persisted. I’ve had various research sessions and never found a solution - until today.

According to this issue, you need to disable network optimizations from esphome:

network:
  enable_ipv6: true
  enable_high_performance: false

The documentation says:

enable_high_performance (Optional, boolean): Explicitly enables or disables high-performance networking optimizations. Only supported on ESP32 devices. When not specified, this is automatically enabled by components that benefit from optimized network settings. Set to false to disable these optimizations if they cause memory issues on your device. Defaults to component-driven behavior.

It must be set to false, otherwise autodetection will enable it. After esphome compile and esphome upload the dropouts are finally gone.