BobaBanana Open the studio

How to make an AI talking avatar with lip sync from one portrait

By the BobaBanana team · Published 2026-11-26 · Updated 2026-12-01

An AI talking avatar with lip sync is a short video in which a character from a single portrait speaks a script, with mouth movements that follow the speech. In BobaBanana you give it a clear, front-facing portrait, a voice (cloned with permission, designed, or saved by @handle) and a short script, and you get a 2-10 second lip-synced clip at standard quality from the studio or the API.

This guide covers portrait requirements, how to pick a voice, how long your script should be, how to drive the clip with your own audio, and how to fix common problems.

Key takeaways#

  • Use a sharp, well-lit, front-facing portrait with the mouth clearly visible.
  • Choose a cloned voice (only with the speaker's permission), a designed voice, or a saved voice by @handle.
  • Plan about 2.5 words per second of video. A 6 second clip fits roughly 15 words.
  • You can skip text-to-speech and drive the clip with your own recorded audio.
  • In the Video Studio and the API, lip-synced clips are made at standard quality and run 2-10 seconds; join several for longer talks.

What makes a good portrait for a talking avatar?#

The portrait is the start frame. Lip sync is only as good as the face it has to animate.

  1. Face the camera. Front or slight three-quarter views work best. Full profiles do not.
  2. Show the mouth. No hands, microphones, masks or hair across the lips.
  3. Light the face evenly. Avoid deep shadows on one side.
  4. Frame head and shoulders. Leave a little room above the head.
  5. Use a neutral or relaxed expression. A wide grin or open-mouth shout is hard to start talking from.
  6. Keep it sharp. Blur and heavy compression show up as mushy mouth movement.

If the avatar is a recurring character, build it as an approved character asset first and generate the portrait from its @handle. That keeps the face the same across every video. The consistent AI character guide explains how.

Which voice should you use: cloned, designed or saved?#

Voice type What it is When to use it Consent
Cloned A copy of a real voice from up to 3 recordings of 5-30 seconds You want a specific person's voice, such as your own Required: only your voice or one you have explicit permission to clone
Designed A new voice built from a description, attributes and presets Characters, narrators, mascots No real speaker to ask
Saved Any approved voice in your library, used by @handle Reusing the same voice across many videos Already confirmed when the voice was created

A designed voice is set with attributes such as perceived age, vocal presentation, accent, pitch, depth, texture, warmth, energy, pace, expressiveness and emotional tone, plus presets such as Narrator, Conversational or Cinematic Character. Voice design supports English, Chinese, Japanese, Korean, German, French, Russian, Portuguese, Spanish and Italian.

Before cloning anyone's voice, read voice cloning consent.

How long should the script be?#

Plan about 2.5 words per second of video. Too many words and the speech gets cut off or rushed; too few and the avatar sits silent.

Clip length Approximate words
4 seconds 10
6 seconds 15
8 seconds 20
10 seconds 25

Tips for scripts:

  • Write the way people talk. Short sentences, plain words.
  • Spell out numbers and abbreviations the way they should be said.
  • Use punctuation for pauses. A comma or period gives the voice a breath.
  • For longer messages, split the script across several clips.

Can you drive the avatar with your own audio?#

Yes. Instead of a voice and script, you can supply a pre-recorded audio file. The clip follows your speech or soundtrack, and the mouth moves with it.

Use your own audio when:

  • You already have a recorded line from a voice actor or yourself.
  • You need exact timing or delivery that matches other footage.
  • You want to reuse audio from another part of your project.

Keep the audio clean, with one speaker, and trim it to the clip length you want.

How do you make a talking avatar in the studio?#

  1. Open the studio and pick your approved character asset, or upload a portrait.
  2. Write the scene prompt if you are generating the portrait, for example "@sam sits at a desk facing the camera, soft window light."
  3. Choose the aspect ratio. 9:16 for phone feeds, 16:9 for web, 1:1 for square posts.
  4. Pick a voice: a saved voice by @handle, or a cloned or designed voice you have approved.
  5. Write the script, keeping to about 2.5 words per second.
  6. Turn on video and add a motion prompt, such as "talks warmly to the camera with small natural head movements."
  7. Set the length between 2 and 10 seconds.
  8. Generate. The job shows progress and an estimated time. The result appears in History.

How do you make a talking avatar with the API?#

Send a start frame, a voice and a script to POST /v1/videos. With a saved voice:

curl https://bobabanana.com/api/v1/videos \
  -H "Authorization: Bearer $BOBABANANA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://example.com/portrait.png",
    "voice": "@sam_voice",
    "script": "Welcome back! Today I will show you three tricks for faster mornings.",
    "motion": "she talks warmly to the camera with small natural head movements",
    "duration_seconds": 6,
    "aspect_ratio": "9:16"
  }'

To clone a voice in the same request, send an uploaded voice sample as voice and include voice_consent: true. To use your own recording, send it as audio instead of voice and script. Jobs are asynchronous: long-poll with ?wait=30 or set a webhook. The video API docs and speech API docs list every field.

How do you fix common lip sync problems?#

  1. Mouth barely moves. The portrait may hide the mouth, or the face is too small in frame. Crop tighter on head and shoulders.
  2. Speech is cut off. The script is too long for the clip. Cut words or raise the length, up to 10 seconds.
  3. Long silence at the end. The script is too short. Add a few words or shorten the clip.
  4. Face changes during the clip. Simplify the motion prompt. Big head turns and camera moves fight with lip sync.
  5. Voice sounds off. For cloned voices, re-record a cleaner 5-30 second sample with one speaker and no music, and check the transcript.
  6. Wrong pronunciation. Spell the word the way it sounds in the script.
  7. Avatar looks different from last time. Generate the portrait from an approved character @handle instead of a new prompt.
  8. Profile view looks stiff. Use a front-facing portrait; side views lip sync poorly.

Frequently asked questions#

What is an AI talking avatar with lip sync?#

It is a short video made from a portrait in which the character speaks a script or your audio, with mouth movements that match the speech.

How long can a talking avatar video be?#

In the Video Studio and the API, each lip-synced clip is 2-10 seconds, made at standard quality. For longer speeches, split the script and join several clips.

How many words fit in a talking avatar clip?#

Plan about 2.5 words per second, so a 6 second clip fits roughly 15 words and a 10 second clip about 25.

Can I use my own voice?#

Yes. Clone your own voice from up to 3 recordings of 5-30 seconds, or upload a recording and drive the clip with it directly.

Can I clone someone else's voice for an avatar?#

Only with that speaker's explicit permission. Otherwise, design a new voice from a description.

What kind of portrait works best?#

A sharp, evenly lit, front-facing head-and-shoulders shot with the mouth fully visible.

Get started with BobaBanana#

  1. Open the studio and create or pick a character and a voice.
  2. Write a short script and generate a lip-synced clip.
  3. Request early access if you do not have an account yet.