AI Engineering from Scratch Phase 6 Introduction
AI Engineering from Scratch
0% Completed

Phase 6: Speech And Audio

Phase 6: Speech & Audio

> The other half of human communication. Hear, understand, speak.

Start this phase on GitHub

Prerequisites: Phase 1 vectors, matrices, and probability. The first demo
uses only the Python standard library.

First lesson: Audio Fundamentals

Run this command from the repository root:

python3 phases/06-speech-and-audio/01-audio-fundamentals/code/main.py

Keep the command, exit code, detected frequency peaks, alias frequency, and an
explanation of why a low-pass filter must run before downsampling.

Next action: Change the source tone and predict its aliased frequency,
then continue to Spectrograms and Mel Features.

Browse the full Phase 6 lesson list or the
cross-phase roadmap.

Lessons in this phase

  • Audio Fundamentals — Waveforms, Sampling, Fourier Transform
  • Spectrograms, Mel Scale & Audio Features
  • Audio Classification — From k-NN on MFCCs to AST and BEATs
  • Speech Recognition (ASR) — CTC, RNN-T, Attention
  • Whisper — Architecture & Fine-Tuning
  • Speaker Recognition & Verification
  • Text-to-Speech (TTS) — From Tacotron to F5 and Kokoro
  • Voice Cloning & Voice Conversion
  • Music Generation — MusicGen, Stable Audio, Suno, and the Licensing Earthquake
  • Audio-Language Models — Qwen2.5-Omni, Audio Flamingo, GPT-4o Audio
  • Real-Time Audio Processing
  • Build a Voice Assistant Pipeline — The Phase 6 Capstone
  • Neural Audio Codecs — EnCodec, SNAC, Mimi, DAC and the Semantic-Acoustic Split
  • Voice Activity Detection & Turn-Taking — Silero, Cobra, and the Flush Trick
  • Streaming Speech-to-Speech — Moshi, Hibiki, and Full-Duplex Dialogue
  • Voice Anti-Spoofing & Audio Watermarking — ASVspoof 5, AudioSeal, WaveVerify
  • Audio Evaluation — WER, MOS, UTMOS, MMAU, FAD, and the Open Leaderboards