---
title: "Update Voice"
method: PATCH
path: "/voices/{voice_id}"
---

# Update Voice

`PATCH /voices/{voice_id}`

## Request

- Base URL: `https://api.neuphonic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.neuphonic.com/voices/{voice_id}`
- Auth: none declared

Handles the PATCH operation for updating a cloned voice.

This endpoint updates the audio clip associated with a cloned voice.

Args:
    voice_id (str): The unique identifier of the voice to be updated. This is passed as a query parameter.
    new_voice_name (str): new name for this voice.
    new_voice_tags (List[str]): List of strings, contains tags to the voice.
    new_voice_file (UploadFile): The new audio file to update the cloned voice.

Returns:
    dict: A JSON-compatible dictionary with a message indicating whether the voice has been successfully updated.

Raises:
    HTTPException: Raised if the provided `voice_id` is invalid or if the voice does not belong to the authenticated user.

## Path parameters

- `voice_id` string, required

## Query parameters

- `new_voice_name` string
- `new_voice_tags` string
- `api_key` string, nullable
- `jwt_token` string, nullable

## Headers

- `X-API-KEY` string, nullable
- `authorization` string, nullable

## Request body `multipart/form-data`

- BodyUpdateVoiceVoicesVoiceIdPatch
  - `new_voice_file` union
    - string, binary
    - string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/neuphonic/apis/neuphonic-api.md) - [All operations](https://skmtc.dev/neuphonic/apis/neuphonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neuphonic/apis/neuphonic-api/revisions/941fd29844c9?raw)
