Surf the DreamJustin Avery

Technology

Santa Hears

Kids being annoying around xmas - revisited

Yesterday I wrote about the kid kicking the back of my chair, and a silly idea for a web app where you call Santa on him. I described the idea to Claude that night and it was live the same night.

It is called Santa Hears. You call Santa, and you type or say something like "the boy behind me keeps kicking my seat". Your message goes up on the screen in really big letters so the row behind can read it. Then Santa looks over your shoulder at the kid, tells him he has been spotted, and writes it down on his list.

Watch the Santa Hears video demo

Something over fancy, again

The plan was to use the Apple depth model I heard about on Syntax. It turns out that one is made for Apple's own devices and comes with a research-only licence, so it was never going to run in a web page.

So I went with something simpler. The app finds every face the front camera can see, and the biggest one is you. Any smaller face is someone behind you. To work out roughly how far away each person is it measures their irises, because nearly everybody's are the same width (about 11.7mm), so the smaller they look, the further away that person is. No depth model required.

For those of you that want the rest of the details:

  • It is one HTML file. No framework, no build step and no server doing any thinking.
  • The face detection is a library called Human, running on TensorFlow.js in the browser. The models are about 5MB.
  • Santa is an SVG. His eyes follow the kid, and his mouth moves with the actual sound of his voice.
  • The voice is from ElevenLabs. 48 short lines were recorded once and saved as one 2.9MB file, and the phone stitches them into sentences. "22 sleeps to go" is two clips, the number and the rest.
  • There is no language model working out what you said. It is a handful of pattern matches, which is plenty for a chat with Santa.
  • It is hosted on Cloudflare, and once you have opened it, it works with no signal.

Nothing is recorded and nothing leaves your phone. The camera is only there so Santa knows where to look.

You can try it at santahears.simplethin.gs. I still believe in Santa, so I still have no plans to use it. But the next kid that kicks my chair should know that I could...

Comments

Be the first to comment

Comments are read before they appear. Your email address is never shown.

    Type to search titles and full text. ↵ opens the full results page.