Show HN: Willow – Open-source privacy-focused voice assistant hardware (opens in a new tab)github.com
581 pointsI 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 commentsHow does the esp-box compare? E.g. in a noisy environemnt, tv in the background, kids and dogs running around?
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.
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
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
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.
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 ;).
- 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/
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.
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.
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
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
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!
Best of luck with the development! I'll definitely be following closely. Do you sell the pre-built hardware yourself?
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
All comments shown.
Couldn't load more comments. Check your connection and try again.