- Python
- TypeScript
def voices_update(client: Cartesia, voice_id: str) -> None:
"""Update a voice."""
client.voices.update(
voice_id,
name="Updated Name",
description="Updated description",
)
async function voicesUpdate(client: Cartesia): Promise<void> {
/** Update a voice. */
await client.voices.update('voice-id', {
name: 'Updated Name',
description: 'Updated description',
});
}
Run this example
- Python
- TypeScript
cd cartesia-python
CARTESIA_API_KEY=YOUR_KEY python3 examples/examples.py voices_update
cd cartesia-js
CARTESIA_API_KEY=YOUR_KEY npx ts-node examples/node_examples.ts voicesUpdate