Give an actor a voice
characters_voiceDesign or clone a voice for an actor: provide casting direction to create a reusable voice, or a consented voice sample to clone it. Returns voice ID, preview clip, and cost.
Instructions
SPENDS CREDIT: gives an actor a voice. description designs one from casting direction (kept on the character, so later runs can reuse the actor); sampleMediaKey clones a real voice and requires consent: true - the user's own attestation that they hold the rights. Returns the voice id, a preview clip and what it cost. Needs the write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| consent | No | Required with sampleMediaKey: the user holds the rights to that voice. | |
| character | Yes | The actor's slug or id (characters_list). | |
| description | No | Casting direction to design the voice from, up to 1000 characters. | |
| sampleMediaKey | No | A 5-10s voice sample already in the account, to clone instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| costUsd | No | ||
| character | Yes |