talk
A talking portrait. PixelLab draws the portrait's mouth positions once, which costs generations, and then lip-syncs any line of text to them for free.
pixelkiln talk visemes --from art/smith-portrait.png --out talk/smith
pixelkiln talk gif --from talk/smith.talk.json --text "Fire once." --out talk/hello
pixelkiln talk plan --from talk/smith.talk.json --text "Fire once." --out talk/hello
talk visemes draws one expression's mouth positions (/vocal-animation)
and writes <out>.visemes.png, a strip with one cell per position, and
<out>.talk.json, a record of the order, the cell size, the engine, the mood
and what was billed.
--from <png>is a portrait up to 256x256. Nothing is stored on PixelLab.--id <character id>uses a character's stored portrait instead and saves the set onto the character; the strip written is then the character's whole grid, one row per expression.--visemesis 3, 5, 7 (the default) or 12. PixelLab suggests 3 for tiny portraits and 12 for large close-ups. Every expression on one character must use the same count.--moodisneutral(the default),happy,angry,sadorsurprised, held on the face throughout. Run the command once per expression.--engine v3(the default) orpixminimax, a beta engine that keeps the eyes, brows and head still while the mouth moves.--seedrepeats a run.- Cost. For 7 positions PixelLab publishes 3 generations with
pixminimaxat any size, and withv33 at 64px, 6 at 128px and 24 at 256px. Two 64px sets billed 3 each withpixminimaxand one billed 3 withv3(November 2026). Other counts are scaled by count/7, which is an estimate, and a character's stored portrait is priced at 256px because its size is not known here. The command prints the price and asks first (--yes,--budget,--dry-run). - Give the portrait a visible mouth. A robot with no mouth came back with seven frames that barely differ. A face with a closed mouth came back with seven distinct shapes.
- The background is removed from the frames. With
v3the eyes and brows can change between positions as well as the mouth.
talk gif lip-syncs --text (up to 500 characters, any language in the
latin alphabet) to a GIF at --out. Free, and it answers at once.
--from <record.talk.json>sends that record's mouth positions.--id <character id>uses the positions stored on a character, and--moodpicks among its expressions.--frame-msis the time per mouth position (20 to 500, default 90) and--hold-msthe pause on the closed mouth at the end (default 600), so a looping GIF has a beat between takes. A GIF stores delays in steps of 10 ms, so the command prints the timing actually encoded.
talk plan prints the frame-by-frame plan for a line instead of
rendering it (/lip-sync): which cell of the strip to show, for how long,
and how many characters of the text have been spoken by the end of each
frame, which drives a karaoke-style highlight. Free. Use it when a game
engine draws the mouth itself.
--from <record.talk.json>,--id <character id>, or--visemes <n>to plan against a bare preset with no art. With--outthe plan is written as JSON; without it, it is printed.- Each frame is
{ viseme, column, durationMs, textOffset }.columnis the cell of the strip,rowthe expression's row in a character's grid, andcellthe size of one cell. Timings are exact, unlike a GIF's.
Like audio, a talking portrait is not a manifest generator: the output is a strip and a record, and the lines are free to make at any time.
