Module 2
Machines That Hear
Give your AI ears and a voice! From sound waves and spectrograms to talking to your computer, hearing it talk back, and the real engineering that makes it all work โ running privately on your own device. An 18-day journey.
How to get the most out of this module
This module isn't just for fun โ it's to make you a real builder. Do these and you'll be able to build voice apps yourself (or tell an AI assistant exactly what to build):
๐ Part 1 ยท How Machines Hear
Sound becomes numbers โ waves, pictures, and pitch.
Sound Is a Wave
See and hear sound as wiggles: frequency = pitch, size = loudness.
Sound as a Picture
The spectrogram โ how machines turn sound into an image, then use vision tricks.
Pitch Detective
A live note detector โ sing and it names the note.
๐ง Part 2 ยท Understanding Sound
Train ears, talk to text, and text to talk โ on your device.
Teach It a Sound
Train your own audio AI to tell claps, whistles, or words apart.
Talk to Text
Real speech-to-text (Whisper), 100% on your device.
Text to Talk
Type anything and hear the AI say it โ design its voice.
How It Understands
Phonemes, context, and the language model ("I scream" vs "ice cream").
๐ ๏ธ Part 3 ยท Build & Decide
Voice commands, scoring, ethics, and your own assistant.
Wake Words & Commands
Real on-device voice control โ drive a robot maze with your voice.
Scoring Speech AIs
Word Error Rate โ inserts, deletes, swaps, and how noise wrecks it.
Real AI Voices & Ethics
Hear how human AI voices are + deepfake-detective + responsible building.
Your Voice Assistant
Talk โ it understands โ acts โ talks back. Build your own assistant!
โ๏ธ Part 4 ยท Real Voice Engineering
The pro topics that make real voice systems actually work.
Is Anyone Talking? (VAD)
Voice Activity Detection โ know when speech starts, stops, and ends.
Stop the Echo (AEC)
Acoustic Echo Cancellation โ subtract the speaker's voice out of the mic.
Clean the Voice
Noise suppression โ pull a clean voice out of a noisy signal.
Fast or Accurate?
Streaming vs batch ASR and why latency matters.
Tiny Audio, Big Tradeoffs
Sample rate, bit depth & codecs โ quality vs file size.
Listen This Way
Beamforming & mic arrays โ steer a listening beam at a voice.
Cancel the Noise Wave
Active Noise Cancellation โ erase noise with an opposite wave.
Real tools & open-source models
You know the ideas AND the pro words now. Here are the real, free tools engineers use โ for hobby projects and professional apps. Most run in a browser, on a laptop, or on a Raspberry Pi.
๐งฐ Platforms & starting points
- Hugging Face โ find open models & demos beginner
- Teachable Machine (Audio) โ train sound models, no code beginner
- transformers.js โ run models in the browser beginner
๐๏ธ Speech-to-text (ASR)
- Whisper โ top speech-to-text beginner
- whisper.cpp โ Whisper on small devices pro
- Vosk โ offline speech recognition beginner
๐ Text-to-speech (TTS)
- Kokoro TTS โ small open neural voice beginner
- Piper โ fast local text-to-speech beginner
- Coqui TTS โ train & clone voices pro
โ๏ธ Engineering building blocks
- Silero VAD โ detect speech vs silence beginner
- openWakeWord โ custom wake words pro
- RNNoise โ neural noise suppression pro
- librosa โ spectrograms & audio analysis pro