Set Marvin Free
By Rob Zwetsloot. Posted
Despite the plethora of adorable talking dolls that have been available to children since at least the 1980s, talking dolls are still disconcerting to some folks; scientifically known as ‘the heebie-jeebies’. This did not stop Sebastião Quintas while making Marvin.
Set Marvin Free is a “conversational doll that hosts a speech-based escape game,” Sebastião tells us. “The project combines a speech interface with playful storytelling, transforming a regular doll into an interactive game master. Players progress through four different mini games that branch into 24 possible endings. The project runs entirely offline, using a Raspberry Pi 5, as well as a microphone and speaker.”
Take back control of your online data, with Raspberry Pi.
Sebastião was looking to explore using a completely vocal interface for a toy or game, with no visual cues to rely on, and to make it completely offline with everything running locally with no need for external APIs: “This greatly simplifies the infrastructure required, but at the cost of trying to fit everything on-device,” he says.
Rasp-beary Pi
Landing on Raspberry Pi to power Marvin seemed like a natural conclusion.
“Raspberry Pi is the perfect fit for this kind of project: it’s powerful enough to run a wake-word detector, a lightweight speech-recognition model, and the full NLU pipeline entirely offline, while its Linux-based environment makes setup straightforward,” Sebastião explains. “I experimented with a Raspberry Pi Zero as well, but its underlying CPU architecture wasn’t compatible with some of the deep-learning packages needed. Oh, and [Raspberry Pi’s] compact format allows for it to be ‘easily’ concealed inside a stuffed animal!”
As Sebastião developed the project – adding the ability to process a wake word and tell a story – he decided to add more, feeling the idea at this stage was ‘a little bit empty’: “As a result, several more features were added, such as cracking jokes, giving random facts, riddles, tongue-twisters, etc. This culminated in the idea of adding a more ambitious feature through the means of a speech-based game that not only provided a different type of interaction, but also a fun venue for more storytelling.”
These speech-based games resulted in their own extra challenges – mostly memorising details necessary for the games as they progress. “It’s crazy how much work goes into making some of these seemingly simple games!” Sebastião notes.
Rob is amazing. He’s also the Features Editor of Raspberry Pi Official Magazine, a hobbyist maker, cosplayer, comic book writer, and extremely modest.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
8BitDo 64 Controller review
A near perfect replica of the original N64 controller, but laid out for modern sensibilities and comfort.
Read more →
Paper console
Look at those physical controls! This device is built to be beautiful: it’s made out of walnut and brass.
Read more →
Take Back Your Cloud in Raspberry Pi Official Magazine 165
We’re all-too accustomed to the feling of being watched on the internet. A search for any product leads to adverts, emails, and goodness knows how many bots tracking you. It feels weird and intrusive, and we aren’t being paranoid – they really are watching us. Luckily you don’t have to reply on online services that […]
Read more →