- Python
- TypeScript
Run this example
- Python
- TypeScript
Get a specific voice.
def voices_get(client: Cartesia) -> Any:
"""Get a specific voice."""
voice = client.voices.get("voice-id")
return voice
async function voicesGet(client: Cartesia): Promise<void> {
/** Get a specific voice. */
const voice = await client.voices.get('6ccbfb76-1fc6-48f7-b71d-91ac6298247b');
console.log(voice.name);
}
cd cartesia-python
CARTESIA_API_KEY=YOUR_KEY python3 examples/examples.py voices_get
cd cartesia-js
CARTESIA_API_KEY=YOUR_KEY npx ts-node examples/node_examples.ts voicesGet
Was this page helpful?