● nureta
Docs
Video

Voices

Give each person in a video a voice in your own words, such as tone, accent and manner, so they sound the same in every shot.

This page uses NURETA_URL, NURETA_KEY and the wait_task helper from Get started.

Give each person of a cast a voice in your own words: tone, accent, manner. The voice stays the same in every shot. Voices work on the seahorse-* models. This example is a 5-second clip at 480p ($0.94).

TASK_ID=$(curl -s -X POST "$NURETA_URL/api/v3/contents/generations/tasks" \
  -H "Authorization: Bearer $NURETA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seahorse-480p",
    "duration": 5,
    "ratio": "9:16",
    "content": [{"type": "text", "text": "Mia sits on the sofa next to Leo. She leans in and whispers \"I missed you.\" He laughs and says \"Me too.\""}],
    "cast": {"members": [
      {"id": "p1", "sex": "female", "name": "Mia", "looks": "long brown hair", "voice": "soft and husky, British accent"},
      {"id": "p2", "sex": "male", "name": "Leo", "voice": "deep and calm"}
    ]}
  }' | jq -r .id)
DONE=$(wait_task "$NURETA_URL/api/v3/contents/generations/tasks/$TASK_ID")
printf '%s' "$DONE" | jq '{status, video: .content.video_url, voices: [.cast.members[] | {name, voice}], error}'
  • voice: up to 120 characters, for example "low and husky, French accent, laughs a lot". Without a voice, the API picks one that fits the person.
  • The voice is heard when the person speaks: write the lines in the prompt, as in Spoken lines. generate_audio must stay true (the default).
  • A saved character's preset voice (profile.voice in the library) is not added for you. Read it and send it as voice.

Common errors

You getWhyFix
400 InvalidParameter "cast.members[0].voice must not describe a child's voice"The voice asks for a child's voice.Describe an adult voice.
400 InvalidParameter "cast.members[0].voice must not copy a real person's voice"The voice names or imitates a real person ("sounds like" a named person, "an impression of", "clone").Describe the sound instead: tone, accent, pace.
400 InvalidParameter "cast.members[0].voice must be text up to 120 characters"The voice is too long.Shorten it.
The task fails with cast_text_rejectedThe content policy blocked a name, look, outfit or voice.Change the cast text. You were refunded.

On this page