English · Українська
A voice speaker you build yourself: it hears its wake phrase on the board and holds the conversation with the OpenAI Realtime API or GPT-Live.
Step-by-step guide · Latest release
There are two versions of the speaker, each with its own hardware and its own pages in the guide.
Version 2 talks with OpenAI by itself. It is built on an ESP32-S3 board, and the speaker serves its own settings page. Guide for version 2
Version 1 needs a small home server: the voice-hub service in Docker holds the conversation and serves the settings page. It is built on an ESP32 board. Guide for version 1
- Starts with a wake phrase or a press of the button on top. The phrase is one of three: Hey Jarvis, Okay Nabu or Hey Mycroft, chosen for each speaker on the settings page.
- Answers out loud. After an answer you can keep asking without the phrase.
- “Thank you, that’s all” ends the conversation. The volume changes by voice or with a slider on the settings page.
- A light ring and two short sounds show what the speaker is doing.
- The settings page, in Ukrainian and English, holds the OpenAI key, the model, the voice, the instructions, the conversation language, the timings and the wake phrase. In version 2 the speaker serves it itself. In version 1 it is the server's page, which also holds the list of speakers.
- The firmware installs from the browser over USB. Version 2 then updates from its settings page, without a cable; in version 1 new versions install from the browser the same way, without erasing the speaker.
- In both versions the speaker recognises the wake phrase on its own board. Until it hears the phrase or you press the button, no sound leaves it.
- Version 2 then sends your voice straight to the OpenAI Realtime API or GPT-Live, as you choose on its settings page. The speaker keeps your OpenAI key and plays the spoken answer itself.
- Version 1, shown in the picture, sends your voice to
voice-hub, a small service in Docker on a computer in your home network. The service keeps your OpenAI key, holds the conversation with the OpenAI Realtime API and sends the spoken answer back to the speaker. - After the answer the speaker listens a few more seconds for a follow-up, then waits for the wake phrase again.
The step-by-step guide shows everything in pictures for each version: the parts with links, printing, soldering and assembly. Besides the parts you need a 3D printer, a soldering iron, 2.4 GHz Wi-Fi and an OpenAI API key; conversations are paid at OpenAI prices. Version 1 also needs a computer at home that stays on and runs Docker.
Version 2
- Get the parts and print the case.
- Solder and assemble the speaker.
- Install the firmware from the browser over USB, then open the speaker's settings page and enter your OpenAI key.
Version 1
- Get the parts and print the case.
- Solder and assemble the speaker.
- Install the firmware from the browser over USB.
- Start the server and adopt the speaker on its settings page.
If something does not work, see If something goes wrong for version 2 or version 1.
- X.0.0 is a new speaker generation, that is new hardware: version 1 is released as
v1.x.y, version 2 asv2.x.y, starting with 2.0.0. - Each version has its own version number. In version 1 the firmware and the server share it; in version 2 it is the number of the firmware.
- Every release of version 1 carries the firmware image
pytaichenko-1.Y.Z.factory.binand all the case STL files inpytaichenko-1.Y.Z-stl.zip. - Every release of version 2 carries the firmware image
pytaichenko-2.Y.Z.factory.binfor the first install over USB, the updatepytaichenko-2.Y.Z.ota.binthat the speaker installs from its settings page, and all the case STL files inpytaichenko-2.Y.Z-stl.zip. - The Latest release badge and link show the newest release of version 2; the releases of version 1 stay on the releases page. The site always offers the newest release of each version.
- The code (the version 2 firmware, the version 1 firmware configuration and server, the site code, scripts and tests) is under the MIT License.
- The case design (
v1/case/*.scad,v2/case/*.scad), the STL files (v1/case/stl,v2/case/stl), the renders (site/assets/renders) and the written guides (the README files and the texts of the site) are under CC BY-SA 4.0. - Third-party parts keep their own licenses: the version 1 firmware images include ESPHome code under GPL-3.0; the version 2 images are built on Espressif's ESP-IDF and components under Apache-2.0, MIT and the Espressif MIT License; both include wake phrase models under Apache-2.0. See THIRD_PARTY.md.
- Espressif, for ESP-IDF and the components the version 2 firmware is built on, among them esp-sr, which cleans up the sound of the two microphones, and esp-tflite-micro, which runs the wake phrase models.
- ESPHome, for the version 1 firmware build system, its voice and wake phrase components and ESP Web Tools, which installs the firmware of both versions from the browser.
- The Open Home Foundation, for the microWakeWord models Hey Jarvis, Okay Nabu and Hey Mycroft.
- The OpenAI API, for the conversation in real time (the Realtime API or GPT-Live).
