Inspiration
About 1 in 14 U.S. kids has a speech, voice, or language disorder, and California ranks 49th of 51 in speech-language pathologists per resident. Even when families find an SLP, pre-authorizations, visit caps, and "not medically necessary" denials slow everything down. Progress depends on practicing at home, but most parents can't tell whether a sound was right or whether their child is improving. We wanted to give them a way to know.
What it does
ChatterBox is an at-home speech practice tool for kids. A child picks a target sound (/r/ or "th"), sees 10 pictures, and says what's in each one. ChatterBox listens at the level of individual sounds (phonemes) and tells them whether they hit the target. It catches common substitutions like "wabbit" for rabbit. Parents get a dashboard showing progress on each sound, overall progress, and the words their child misses most. If a sound isn't improving, they have real data to bring to their SLP or therapist to adjust the plan.
How we built it
- Frontend: Next.js, with browser audio recording converted to 16 kHz WAV
- Speech scoring: Meta's wav2vec 2.0 model fine-tuned for phoneme recognition (
facebook/wav2vec2-lv-60-espeak-cv-ft). It outputs the sounds actually spoken, written in the International Phonetic Alphabet. We generate the correct pronunciation with espeak-ng and line the two up to find which sound was substituted, dropped, or added. - Auth & data: Supabase. Each session is saved in one call, and database views power the progress charts and the hardest-words list.
Challenges we ran into
- Regular speech-to-text "autocorrects" kids. Typical speech recognition hears "wabbit" and writes "rabbit," so we had to switch to phoneme-level recognition.
- Defining an "attempt": deciding when the child has finished speaking, and handling silence or background noise in a loud hackathon room.
- Alignment tolerance: the model's output and the reference pronunciation differ in small ways (like vowel variations), so we had to score the target sound without penalizing harmless differences.
- Setup: getting espeak-ng, phonemizer, and a 1.2 GB model running locally on our laptops.
Accomplishments that we're proud of
- Live, sound-by-sound feedback that can tell "rabbit" from "wabbit," built in under 12 hours
- A progress dashboard that shows both improvement and plateaus, so parents know when to talk to their SLP
- Privacy by design: children's audio is never stored, only scores
What we learned
Picking the right model mattered more than any other decision. A word-level speech recognizer would have made the product impossible. We also learned how to design for two audiences at once: a fun, encouraging experience for kids and clear, trustworthy data for parents.
What's next for ChatterBox
- Fine-tuning on child speech for better accuracy with young voices
- More target sounds, and practice at the middle and end of words
- A shareable progress report for the child's SLP
- Spanish-language support
Built With
- ai
- fastapi
- javascript
- nextjs
- postgresql
- python
- supabase