# Repository Briefing: HeyWillow/willow
> Source: https://repoforai.com/repo/HeyWillow/willow (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/HeyWillow/willow
- **Official Docs / Website**: https://heywillow.org/
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: C
- **License**: Apache-2.0
- **Engineering Health**: B+ (75/100 · Maintenance 26/35 · Adoption 15/25 · Releases 14/20 · License 20/20)
- **Latest Release**: 0.4.3 (2026-07-21) — https://github.com/HeyWillow/willow/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI
- **Momentum**: 3,149 ★ total (+0 24h / +3 7d) · 133 forks
- **Topics**: `alexa`, `deep-learning`, `echo`, `esp-adf`, `esp-idf`, `esp32`, `google-home`, `home-assistant`, `home-automation`, `privacy`, `speech-recognition`, `speech-to-text`
- **When to Use**: Best for: Teams that want a modifiable ESP32 voice endpoint and can validate the board, audio path, and backend in a pilot. Skip if: You need an appliance ready out of the box, a complete voice service delivered as one container, or confirmed offline recognition without validating the full pipeline.

## Overview
```text
### Architecture & Core Mechanics
Willow is the device-side firmware for an ESP32 voice assistant. The C/CMake tree separates application code in `main/` from code in `components/`. Flash layout and build defaults are represented by `partitions_willow.csv` and `sdkconfig.defaults`, with a separate `spiffs/` directory. The build container uses ESP-IDF 5.3.4 and applies an ESP-ADF v2.7 FreeRTOS patch for IDF 5.3.

Wi-Fi and HTTP audio-stream fixes establish that the firmware handles a networked audio path. They do not establish where recognition runs, how commands are dispatched, or which contracts a backend must implement. The `ha/` directory provides a place to investigate Home Assistant integration, but it does not establish a supported protocol or a stable plugin API.

### Key Capabilities & Differentiators
The concrete starting point is an ESP32 voice endpoint aimed at local and self-hosted use. Firmware-side handling of HTTP audio streams is visible in 0.4.2, including a change to set the stream timeout after connection. This gives integrators a specific behavior to test when a network connection succeeds but audio stalls.

No recognition model family, provider matrix, codec list, or supported-board table is supplied. Local and self-hosted should therefore be treated as deployment goals, not as confirmation that recognition runs on the ESP32 or that the full pipeline works without network access. Validate the intended board and voice-command path together, including where audio is processed and what happens if the backend is unavailable.

### Trade-offs & Limitations
Willow gives integrators control over the ESP32 firmware, unlike treating an Echo or Google Home speaker as a finished appliance. That control comes with work: selecting and flashing the board, commissioning Wi-Fi, and verifying the audio path against the chosen backend. There is no evidence here for equivalent assistant features, recognition accuracy, or latency.

The main adoption question is ownership of the full voice pipeline. If recognition is moved to a self-hosted service, it is not necessarily offline at the device, and response times can depend on the local network and the service. Apache-2.0 is suitable for commercial firmware reuse, but redistribution obligations and the terms of dependencies or external services still need separate review.

### Hardware & Deployment Guide
Use the Dockerfile as a firmware build environment, not as a voice-service image. It sets `/willow` as its working directory, installs Python utilities, `libusb-1.0-0`, and `tio` alongside the ESP-IDF toolchain, and fetches the ESP-ADF patch from GitHub during the image build. A network-isolated build requires those inputs to be staged ahead of time. Verify the exact target board, access to its flashing interface, and compatibility with the supplied partition layout before provisioning devices.

If the chosen voice pipeline needs a separate service, plan and size that service separately; the Dockerfile neither deploys it nor establishes a GPU requirement. For rollout, 0.4.2's Wi-Fi, RAM, and stream-timeout changes make reconnect and stalled-stream scenarios worth retesting. The 0.4.3 concurrency and memory fixes, including atomic notification cancellation, make repeated cancellation during normal use another useful acceptance test.
```

## Key Capabilities
```text
- Firmware structure: C and CMake, with application code in `main/` and a separate `components/` tree.
- Toolchain: The Dockerfile uses `espressif/idf:v5.3.4`, sets `/willow` as the working directory, and applies the ESP-ADF v2.7 FreeRTOS patch for IDF 5.3.
- Flash configuration: `partitions_willow.csv`, `sdkconfig.defaults`, and `spiffs/` are explicit starting points for auditing a device build.
- Audio transport: Release 0.4.2 includes HTTP audio-stream timeout changes, including setting the timeout after connection.
- Reliability: 0.4.2 includes Wi-Fi and RAM improvements; 0.4.3 addresses concurrency, memory correctness, and atomic notification cancellation.
- Licensing: Apache-2.0 permits commercial modification and redistribution subject to its terms.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/HeyWillow/willow.git
cd willow
```
