talking_gif
Turn a line of text into an animated GIF of a character speaking it. Reuses mouth positions from character_id or vocal_animation visemes, spending no generations.
Instructions
Turn a line of text into an animated GIF of a character speaking it. Free — spends no generations; it only re-orders mouth positions already produced by vocal_animation. Provide either character_id (with mouth positions stored on the character) or supply visemes directly as returned by get_vocal_animation_job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mood | No | Which stored expression to talk with (defaults to the character's first). Only valid with character_id | |
| text | Yes | The line of dialogue to lip-sync. Mouth shapes are derived from the letters, so any language using the latin alphabet works | |
| hold_ms | No | Pause held on the closed mouth at the end, so a looping GIF has a beat between takes (default 600) | |
| visemes | No | Supply the mouth positions directly, as returned by get_vocal_animation_job (map of viseme name to image). Mutually exclusive with character_id | |
| frame_ms | No | Milliseconds per mouth position (default 90) | |
| character_id | No | Use the mouth positions stored on this character. Mutually exclusive with visemes |