Raspberry Pi jack-o'-lantern that chats with kids and moves its mouth
A Pi 4 pumpkin records a question, answers via the OpenAI API in a cartoon voice, and moves its servo mouth and LEDs in time.


A jack-o’-lantern built for a neighbourhood kids’ Halloween party now answers questions. Press the button and a Raspberry Pi 4 records until you stop talking, then the OpenAI API turns the speech into text and writes a reply, for up to four turns per chat. The pumpkin says it in the Zundamon character voice, moving its mouth and flickering its LEDs as it goes. Conversations are in Japanese. Say “nazonazo” and it sets a riddle, and when nobody’s talking it sings an original song.
The voice comes from VOICEVOX running on a desktop GPU, which the Pi calls over Wi-Fi. An MG996R servo on a PCA9685 drives the mouth. Fixes included ignoring audio for 0.6 seconds after speaking, so it stopped hearing its own servo, and releasing the servo once the mouth shut, so it stopped overheating. Streaming the reply cut latency from about four seconds to three.
The prompt keeps kid-safe rules, with personal information the main worry. The write-up and a short video are in u/TicketPurple9068’s Reddit post.
All credit to u/TicketPurple9068. The full story is at the original source.


