Foundations: how a machine speaks · 0d
Generating speech like text
The talker's loop: one pass per frame, until it draws the stop token. Table lookups, softmax, temperature, drawing by probability, the repetition penalty and the KV cache each come first with toy numbers. The prompt for "Hello world" is 13 rows, each a text track plus a codec track. Each pass, codec_head scores 3,072 ids, the control ids are blocked (2,049 candidates left), and code 0 is sampled (frame 5's favourite was 488; the draw picked 1294). The frame's 16 codes come back as one summed row. 19 frames take 20 passes, and P(EOS) jumps from under 3% to 99.94% at pass 20; changing only the seed gives 18 to 36 frames. Then how sglang-omni feeds a summed vector into an SGLang decode that only takes token ids.