# clone

URL: /business/nouns/voice/clone · Id: `verb:Voice.clone` · Call: `await $.Voice.clone({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Clone trains a Voice from a real speaker’s recordings after the speaker records Consent in that same voice.

Clone trains a [Voice](/business/nouns/voice) from a real speaker’s recordings after the speaker records [Consent](/business/nouns/consent) in that same voice.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `speaker` | [Person](/business/nouns/person) | Yes | The person whose voice it is. |
| `samples` | list of [File](/business/nouns/file) | Yes | Recordings of the speaker. |
| `consent` | [Consent](/business/nouns/consent) | Yes | The speaker’s Consent, spoken in the voice being cloned. |
| `scope` | `string` | Yes | Who may speak in it. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `voice` | [Voice](/business/nouns/voice) | Yes | The Voice, `training` until the upstream finishes. |

## Effects
- Emits [`Voice.cloned`](/business/events/Voice.cloned).
- Performed by the [Content Lead](/agents/marketing/content-lead).
- Two-way: it runs at once, in the `try`, `send` and `do` modes.
- Refuses when the Consent is missing, withdrawn, or not spoken by the speaker.
- Moves the Voice to `ready` when training ends.

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Voice.clone](/business/nouns/voice/clone) |
| The Consent is missing, withdrawn, or not spoken by the speaker | [`refused`](/code/api/errors/refused) | Clear what the check names, then call it again. | [Voice.clone](/business/nouns/voice/clone) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Clone the latest voice with a person and a file and consent.
```

**API**

```bash
curl -X POST https://api.sb/ledgerlark.com/voices/clone \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"speaker":"person_1","samples":["file_1"],"consent":"consent_1","scope":"studio"}'
```

```json
{
  "api": "https://api.sb/ledgerlark.com",
  "voice": {
    "$id": "https://api.sb/ledgerlark.com/voices/voice_1",
    "$type": "Voice",
    "origin": "cloned",
    "scope": "studio",
    "status": "training"
  },
  "action": {
    "$id": "https://api.sb/ledgerlark.com/actions/action_1",
    "operation": "Voice.clone",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/ledgerlark.com/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const voice = await $.Voice.clone({ speaker: 'person_1', samples: ['file_1'], consent: 'consent_1', scope: 'studio' })
```

**CLI**

```bash
npx startup-builder do Voice.clone --json '{"speaker":"person_1","samples":["file_1"],"consent":"consent_1","scope":"studio"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Voice.clone({ speaker: 'person_1', samples: ['file_1'], consent: 'consent_1', scope: 'studio' })"
  }
}
```