v1
latestOpenAPI 3.1.02026-07-1312416.2 KBUpdate Voice
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.
patch/voices/{voice_id}
Path parameters
voice_idstring required
Query parameters
new_voice_namestring
new_voice_tagsstring
api_keystring nullable
jwt_tokenstring nullable
Headers
X-API-KEYstring nullable
authorizationstring nullable
Response
Successful Response
{"stackTrail":"paths:/voices/{voice_id}:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}