Skip to content

ESP/Speaker: Validate audio downloads and document SD settings - #168

Merged
ao-david merged 2 commits into
speaker/pr04-volume-curvefrom
speaker/pr05-audio-downloads
Oct 29, 2026
Merged

ao-david merged 2 commits into
speaker/pr04-volume-curvefrom
speaker/pr05-audio-downloads

Conversation

@ao-david

Copy link
Copy Markdown
Member

Stacked on #167.

  • Download audio to a temporary file and only move it into place after the HTTP request succeeds, the status is 200, the write completed, and the length matches the server's Content-Length where provided.
  • Check cached files for a complete WAV header so interrupted downloads are not reused.
  • Add a configurable SD SPI clock (default 10 MHz) to give boards affected by SD data CRC errors a lower-speed option (ESP/Speaker: SD card fail after time #121).
  • Document the volume curve, download handling, and SD clock setting.

Download audio to a temporary file and only move it into place after the
HTTP request succeeds, the status is 200, the write completed, and the
length matches. Cached files are now checked for a complete WAV header so
corrupt downloads are not reused.

Add a configurable SD SPI clock (default 10 MHz) and use it for the SD
host. This provides a way to improve reliability on boards affected by
SD data CRC errors during long playback sessions (#121).
Document the new volume curve, validated atomic audio downloads, the
configurable SD SPI clock, and the allocation-free NetSender callback
and parsing interfaces.
@ao-david
ao-david added this pull request to stack #173 October 29, 2026 06:47
@ao-david
ao-david merged commit 819efcd into main Oct 29, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant