Lurker News
As the Home Assistant project says, it's the year of voice!

I love Home Assistant and I've always thought the ESP BOX[0] hardware is cool. I finally got around to starting a project to use the ESP BOX hardware with Home Assistant and other platforms. Why?
- It's actually "Alexa/Echo competitive". Wake word detection, voice activity detection, echo cancellation, automatic gain control, and high quality audio for $50 means with Willow and the support of Home Assistant there are no compromises on looks, quality, accuracy, speed, and cost.
- It's cheap. With a touch LCD display, dual microphones, speaker, enclosure, buttons, etc it can be bought today for $50 all-in.
- It's ready to go. Take it out of the box, flash with Willow, put it somewhere.
- It's not creepy. Voice is either sent to a self-hosted inference server or commands are recognized locally on the ESP BOX.
- It doesn't hassle or try to sell you. If I hear "Did you know?" one more time from Alexa I think I'm going to lose it.
- It's open source.
- It's capable. This is the first "release" of Willow and I don't think we've even begun scratching the surface of what the hardware and software components are capable of.
- It can integrate with anything. Simple on the wire format - speech output text is sent via HTTP POST to whatever URI you configure. Send it anywhere, and do anything!
- It still does cool maker stuff. With 16 GPIOs exposed on the back of the enclosure there are all kinds of interesting possibilities.
This is the first (and VERY early) release but we're really interested to hear what HN thinks!
[0] - https://github.com/espressif/esp-box

Comments (138) 39 threads

Earlier comments
edf131 reply#
Sounds interesting - one question I have is about the mic array... Isn't this one of the supposed benefits of a physical Alexa device, and rumored to be sold at a loss because of the quality.

How does the esp-box compare? E.g. in a noisy environemnt, tv in the background, kids and dogs running around?

kkielhofner2 replies#
The ESP BOX has an acoustically optimized enclosure with dual microphones for noise cancelation, separation, etc.

Between that and the Espressif AFE (audio frontend interface) doing a bunch of DSP "stuff" in our testing it does remarkably well in noisy environments and far-field (25-30 feet) use cases.
Our inference server implementation (open source, releasing next week) uses a highly performance optimized Whisper which does famously well with less-than-ideal speech quality.
All in, even though it's all very early, it's very competitive with Echo, etc.

glenngillen1 reply#
What’s the latency on inference on a rasbpi (I assume it’s not running it direct on the device)? I think I read previously that it was up to 7 secs, and if you wanted sub-second you’d need an i5.
kkielhofner3 replies#
Willow supports the Espressif ESP SR speech recognition framework to do completely on device speech recognition for up to 400 commands. When configured, we pull light and switch entities from home assistant and build the grammar to turn them on and off. There's no reason it has to be limited to that, we just need to do some extra work for better dynamic configuration and tighter integration with Home Assistant to allow users to define up to 400 commands to do whatever they want with their various entities.

With local command recognition with Willow I can turn my wemo switches on and off, completely on device, in roughly 300ms. That's not a typo. I'm going to make another demo video showing that.
We also support live streaming of audio after wake to our highly optimized Whisper inference server implementation (open source, releasing next week). That's what our current demo video uses[0]. It's really more intended for pro/commercial applications as it supports CPU but really flies with CUDA - where even on a GTX 1060 3GB you can do 3-5 seconds of speech in ~500ms or so.
We also plan to have a Willow Home Assistant component to support Willow "stuff" while enabling use of any of the STT/TTS modules in Home Assistant (including another component for our inference server you can self-host that does special Willow stuff).
[0] - https://www.youtube.com/watch?v=8ETQaLfoImc

Continue this thread — 3 replies

stavros1 reply#
Where can I get one? I can't find it on Ali :(
kkielhofner4 replies#
You never know if people are going to love your pet project as much as you do. We had a hunch the community would appreciate Willow but like I said, you just never know.

My suspicion is Espressif (until now, hah) hasn't sold a lot of ESP Boxes. We were concerned that if Willow takes off they will sell out. That already appears to be happening.
Espressif has tremendous manufacturing capacity and we hope they will scale up ESP BOX production to meet demand now that (with Willow) it exists. The only gaiting item for them is probably the plastic enclosure and they should be able to figure out how to produce that en masse :).

Continue this thread — 4 replies

RileyJames2 replies#
I’ve been living in a house for the past few months with a google assistant. I only use it to put on music, but I have noticed I play more music due to the ease of putting it on.

But I hate the privacy invasion aspect. I’m definitely in the market for something like this. And this one looks great.
Additionally, I’ve noticed that the google voice assistant (connected to Spotify) doesn’t keep playing the albums I ask for.
It states it’s playing the album. But after 4/5 songs it starts playing different songs, or different artists.

kkielhofner2 replies#
Music output is "on the list".

Biggest fundamental issue is the speaker built in the ESP BOX is optimized for speech and not going to impress anyone playing music.
That said, the ESP BOX (of course) supports bluetooth so we can definitely pair with a speaker you bring.
Willow is the first of it's kind that I'm aware of to enable this kind of functionality at anything close to this price point in the open source ecosystem. Either we (or someone else) is likely going to manufacture an improved ESP BOX with market competitive speakers built-in for music playback.
Then it's "just" a matter of actually getting the music audio but we'll figure that out ;).

COGlory1 reply#
Could we not use Willow to cast music, say, via Spotify or some other network streamer, through HA, to my pre-existing sound system?
kkielhofner#
The approach there would be to ignore Willow for music output and just do what it does today:

- Wake
- Get command
- Send to Home Assistant conversation/intents API[0]
- Home Assistant does whatever you define, including what you describe just like it does today
So unless I'm missing something your use case should "just work".
[0] - https://developers.home-assistant.io/docs/intent_index/

RileyJames1 reply#
Nice. I guess I don’t expect willow to cover the speaker element. I’d rather connect with my existing hifi / Bluetooth speakers.

But with google I’m stuck with their integration to Spotify. It’s that component I’d like control over, and that’s why I’d use willow.
That and not being spied on in my own home.
Definitely keen for one.

kkielhofner#
The ESP Box with the ESP32 S3 has robust bluetooth support and I don't see A2DP/BT/pairing management/etc being that big of a lift. In full transparency it's probably towards the bottom on the priorities list ATM but the important thing is it's on the list already and it happens to be something I'm personally interested in :).
chankstein38#
It also, at least in my case, frequently won't stop playing when you tell it to. And, if you want a song that has a title that isn't family friendly, it'll completely ignore that title and just play whatever the heck it wants.
mdrzn1 reply#
Very interesting, I would buy an "off the shelf" version if it worked out of the box with Vicuna13 or similar LLM.
kkielhofner1 reply#
Our inference server (open source - releasing next week) has support for loading LLaMA and derivative models complete with 4-bit quantization, etc. I like Vicuna 13B myself :). Not to mention extremely fast and memory optimized Whisper via ctranslate2 and a bunch of our own tweaks.

Our inference server also supports long-lived sessions via WebRTC for transcription, etc applications ;).
You can chain speech to text -> LLM -> text to speech completely in the inference server and input/output through Willow, along with other APIs or whatever you want.

vlugorilla1 reply#
Awesome work! May I ask what are you using for text-to-speech?
kkielhofner#
Thanks, of course!

For wake word and voice activity detection, audio processing, etc we use the ESP SR (speech recognition) framework from Espressif[0]. For speech to text there are two options and more to come:
1) Completely on device command recognition using the ESP SR Multinet 6 model. Willow will (currently) pull your light and switch entities from Home Assistant and generate the grammar and command definition required by Multinet. We want to develop a Willow Home Assistant component that will provide tighter Willow integration with HA and allow users to do this point and click with dynamic updates for new/changed entities, different kinds of entities, etc all in the HA dashboard/config.
The only "issue" with Multinet is that it only supports 400 defined commands. You're not going to get something like "What's the weather like in $CITY?" out of it.
For that we have:
2-?) Our own highly optimized inference server using Whisper, LLamA/Vicuna, and Speecht5 from transformers (more to come soon). We're open sourcing it next week. Willow streams audio after wake in realtime, gets the STT output, and sends it wherever you want. With the Willow Home Assistant component (doesn't exist yet) it will sit in between our inference server implementation doing STT/TTS or any other STT/TTS implementation supported by Home Assistant and handle all of this for you - including chaining together other HA components, APIs, etc.
[0] - https://github.com/espressif/esp-sr

canadiantim1 reply#
Wow this looks beyond epic. I've been looking for something like this.

Going to try to hack this into something my mom can use (who has trouble with confusion and memory). Could potentially be very great.
Thank you

kkielhofner1 reply#
Thanks!

We are really, truly, and seriously committed to building a device that with support from Home Assistant and other integrations doesn't leave any reason whatsoever to buy an Echo or similar creepy commercial device. No compromises on cost, performance, accuracy, speed, usability, functionality, etc.
We're really looking forward to getting additional testing and feedback from the community on speech recognition results, other integrations, etc. It's just two of us working on this part time over the last month or so - this is VERY early but I think we're off to a good start!

canadiantim1 reply#
Wow yeah I think you're really onto something here. No one actually wants the creepiness from Echo or Alexa etc. That's what prevented me from trying any Home Assistant thing before, but I know it could be very useful if actually sensitive to privacy-concerns.

Best of luck with the development! I'll definitely be following closely. Do you sell the pre-built hardware yourself?

kkielhofner2 replies#
Thanks!

When you're releasing a pet project of love like this you never really know if other people are going to appreciate it as much as you do. Looking here on HN it seems like people appreciate it.
We don't sell the hardware currently because:
1) Espressif has well established sales channels and distribution worldwide.
2) It's not our "business model". In my capacity as advisor to a few startups in the space I've been approached by various commercial entities that want a hardware voice interface they fully control. In healthcare, for example, there are all kinds of interesting audio and speech applications but NO ONE, and I mean NO ONE is going to be ok with seeing an Echo in their doctor's office. That's where an ESP BOX or custom manufactured hardware and Willow come in.
Our business model is to combine our soon to be released very high performance inference and API server with Willow to support these commercial applications (and home users with HA, of course). In all but a few identified and very limited cases all work will come back to the open source projects like our inference server and Willow.

Continue this thread — 2 replies

Load more comments