> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cartesia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Voice

> Get a specific voice.

> [tab] Python
>
> ```python theme={null}
> def voices_get(client: Cartesia, *args: str) -> "Voice":
>     """Get a specific voice."""
>     voice_id = args[0] if args else "6ccbfb76-1fc6-48f7-b71d-91ac6298247b"
>     voice = client.voices.get(voice_id)
>     if hasattr(voice, "embedding"):
>         voice.embedding = ["..."]  # pyright: ignore[reportAttributeAccessIssue]
>     print(voice)
>     return voice
> ```
>
> From [cartesia-python/examples/examples.py:519](https://github.com/cartesia-ai/cartesia-python/blob/v4.0.1/examples/examples.py#L519)

> [tab] TypeScript
>
> ```typescript theme={null}
> async function voicesGet(client: Cartesia, args: string[]): Promise<void> {
>   const voiceId = args[0] ?? '6ccbfb76-1fc6-48f7-b71d-91ac6298247b';
>   const voice = await client.voices.get(voiceId);
>
>   if ('embedding' in voice) {
>     console.log({ ...voice, embedding: ['...'] });
>   } else {
>     console.log(voice);
>   }
> }
> ```
>
> From [cartesia-js/examples/node\_examples.ts:559](https://github.com/cartesia-ai/cartesia-js/blob/v4.0.1/examples/node_examples.ts#L559)

## Run this example

> [tab] Python
>
> ```sh theme={null}
> git clone --branch v4.0.1 https://github.com/cartesia-ai/cartesia-python
> cd cartesia-python
> uv sync
> CARTESIA_API_KEY=YOUR_KEY uv run examples/examples.py voices_get [voice_id]
> ```

> [tab] TypeScript
>
> ```sh theme={null}
> git clone --branch v4.0.1 https://github.com/cartesia-ai/cartesia-js
> cd cartesia-js
> pnpm i
> CARTESIA_API_KEY=YOUR_KEY pnpm tsn examples/node_examples.ts voicesGet [voice_id]
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.