mimi · kyutai · the codec under every voice

A voice in 32 layers

Every Kyutai voice model – Moshi, Hibiki, their text-to-speech – never touches sound directly. It reads and writes tokens from Mimi, a codec that turns each 80 ms of audio into a stack of up to 32 numbers. I wanted to know what each of those layers holds, so I built a mixing desk for them.

A token is one entry from a dictionary of 2,048 short sound shapes. One column below is 80 ms; one row is one layer.

8
click a row to hear only that layer · click again to go back

Things to try

How Mimi packs a voice

Each layer adds one arrow that points at what the layers before it missed. The diagram follows the desk.

Layers: 
  1. Listen. An encoder hears 80 ms of sound and sums it up as one point in a big space of possible sounds.
  2. Name it, roughly. Layer 1 picks the closest of its 2,048 shapes. It was trained to agree with a speech model, so it captures what is being said – the meaning layer.
  3. Fix what is left. Layer 2 names the error layer 1 left behind, layer 3 the error after that, and so on – like a sketch that every pass makes finer. That is why the first layers matter most.
  4. Unpack. A decoder turns the stack of numbers back into 24,000 samples per second.

What each layer costs

Every layer adds 137.5 bits per second. Moshi talks with 8 of them – about 1.1 kbit/s.

How much each layer adds

Distance from the original, measured on the spectrum (lower is closer). The first few layers do almost all the work.

Built by Michael Kittel, an independent study, not affiliated with Kyutai. Uses Kyutai's Mimi codec (weights CC BY 4.0, code from kyutai-labs/moshi). The poem voices were made with Pocket TTS and are AI-generated.

Every mix here was decoded by Mimi on my laptop. In a local run the desk also records your voice and decodes any layer combination live.