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

# Update a Voice

> Update a voice.

<Tabs>
  <Tab title="Python">
    ```python theme={null}
    def voices_update(client: Cartesia, voice_id: str) -> None:
        """Update a voice."""
        client.voices.update(
            voice_id,
            name="Updated Name",
            description="Updated description",
        )
    ```

    From [cartesia-python/examples/examples.py:486](https://github.com/cartesia-ai/cartesia-python/blob/main/examples/examples.py#L486)
  </Tab>

  <Tab title="TypeScript">
    ```typescript theme={null}
    async function voicesUpdate(client: Cartesia): Promise<void> {
      /** Update a voice. */
      await client.voices.update('voice-id', {
        name: 'Updated Name',
        description: 'Updated description',
      });
    }
    ```

    From [cartesia-js/examples/node\_examples.ts:360](https://github.com/cartesia-ai/cartesia-js/blob/main/examples/node_examples.ts#L360)
  </Tab>
</Tabs>

## Run this example

<Tabs>
  <Tab title="Python">
    ```sh theme={null}
    cd cartesia-python
    CARTESIA_API_KEY=YOUR_KEY python3 examples/examples.py voices_update
    ```
  </Tab>

  <Tab title="TypeScript">
    ```sh theme={null}
    cd cartesia-js
    CARTESIA_API_KEY=YOUR_KEY npx ts-node examples/node_examples.ts voicesUpdate
    ```
  </Tab>
</Tabs>
