Fun Flashcards Game for Kids using AI Speech Recognition
Daniel Chifamba

Daniel Chifamba @dchif

About: I love all things tech and enjoy exploring the latest trends. I dive into the playful and silly side of tech while trying new things and being creative. Tech doesn’t always have to be formal/serious

Joined:
Oct 6, 2024

Fun Flashcards Game for Kids using AI Speech Recognition

Publish Date: Nov 22 '24
15 2

This is a submission for the AssemblyAI Challenge : Really Rad Real-Time.

What I Built

I made a fun math game for kids with math flashcards. Kids answer by speaking, and the game uses AI Powered Speech Recognition to check their answers.

It has three levels of difficulty and a setting to turn sound effects on or off.

Demo

Live: https://mathwave.vercel.app

screenshot 1 screenshot 2 screenshot 3
Image description Image description Image description

Journey

I had fun hacking this one out. Initially setup most of the game using the native browser Speech Recognition API. That was an eye opener as I noted:

  • The recognition was rather poor. I assumed it was my voice so I had other people try it out. They too, seemed to end up frustrated as it was failing to recognize the right answer.
  • A lot of code and handling of edge cases was required
  • Results are not consistent across browsers. (ahem...Safari 😅)

Then came AssemblyAI to the rescue 🛟 🌊
The (HUGE) difference:

  • Very easy to setup, very few lines of code
  • Consistent experience across browser
  • Awesome speech recognition from kid's voices to adult voices, even where it was a bit noisy 🔥

Oh...and the Docs and Cookbook were on point 🙂 I found a perfect example pretty close to what I wanted to do here

I simply followed this example to come up with the code that transcribes the answers by voice

The rest of the Source Code can be found here:

Price categories

  • Really Rad Real-Time

Comments 2 total

Add comment