- Python
- TypeScript
Run this example
- Python
- TypeScript
Delete a voice.
def voices_delete(client: Cartesia, voice_id: str) -> None:
"""Delete a voice."""
client.voices.delete(voice_id)
async function voicesDelete(client: Cartesia): Promise<void> {
/** Delete a voice. */
await client.voices.delete('voice-id');
}
cd cartesia-python
CARTESIA_API_KEY=YOUR_KEY python3 examples/examples.py voices_delete
cd cartesia-js
CARTESIA_API_KEY=YOUR_KEY npx ts-node examples/node_examples.ts voicesDelete
Was this page helpful?