Log inStart free
LESSON 25.11 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Neural audio codecs and audio tokens

Watch a codec turn a spoken word into a short grid of tokens.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 25.11 · AUDIO CODECCHUNK 130 · 0.520 S · 32 SAMPLES
01
Stage 1 of 6 · Chunks
A neural codec cuts the word into chunks of 32 samples, 4 ms each. One second has 250 chunks.
Explain it simply

At the top you see the whole word "yes" as one wave. The dashed box marks a short piece of it, drawn larger in the middle. Thin lines cut it into chunks of 4 milliseconds. The bars at the bottom are the 32 samples of one chunk.

The word "yes" as a wave. A window of chunks, 4 ms each, and the 32 samples of chunk 130.

wave, samples, zencoder, codebooksleftover, errortokens, rebuilt wave
yes0 s1 sthe word "yes", 1 s4 ms chunkschunk 124 · 0.496 schunk 155 · 0.620 schunk 130: 32 samplesyes0 s1 sthe word "yes", 1 s4 ms chunkschunk 124 · 0.496 schunk 155 · 0.620 schunk 130: 32 samples
Toy: the 25.C2 word at 8000 samples per second; a linear codec trained on both words
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
xi=(x32i,…,x32i+31)\sy{x}{data}{x_i} = (x_{32i}, \dots, x_{32i+31})
i=130,  t=0.520 si = 130,\; t = 0.520\text{ s}

Chunk i holds 32 samples in a row.

Common mix-ups

MYTHAn audio token stands for one letter of the word.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With 1 codebook instead of 4, what happens to the bitrate and the SNR?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.