> ## 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.

# List Voices

> List voices with pagination.

> [tab] Python
>
> ```python theme={null}
> def voices_list(client: Cartesia) -> None:
>     """List voices with pagination."""
>     print("loading page 1...")
>     page = client.voices.list()
>     voices = list(page.data)
>
>     # loaded 1 page
>     print("loaded", len(voices))
>
>     for i in range(2, 4):
>         if not page.has_next_page():
>             break
>         print(f"loading page {i}...")
>         page = page.get_next_page()
>         voices.extend(page.data)
>         print("loaded", len(voices))
>
>     print([voices[0], "..."])
> ```
>
> From [cartesia-python/examples/examples.py:499](https://github.com/cartesia-ai/cartesia-python/blob/v4.0.1/examples/examples.py#L499)

> [tab] TypeScript
>
> ```typescript theme={null}
> async function voicesList(client: Cartesia): Promise<void> {
>   console.log('loading page 1...');
>
>   let page = await client.voices.list();
>   const voices = [...page.data];
>
>   console.log('loaded', voices.length);
>
>   for (let i = 2; i < 4; i++) {
>     if (!page.hasNextPage()) break;
>
>     console.log(`loading page ${i}...`);
>
>     page = await page.getNextPage();
>     voices.push(...page.data);
>
>     console.log('loaded', voices.length);
>   }
>
>   console.log([voices[0], '...']);
> }
> ```
>
> From [cartesia-js/examples/node\_examples.ts:536](https://github.com/cartesia-ai/cartesia-js/blob/v4.0.1/examples/node_examples.ts#L536)

## 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_list
> ```

> [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 voicesList
> ```


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