Delete a custom voice your organization created
POST /Platform/tts/voices/delete
Delete a custom voice your organization created.
Removes it at the provider and from the voice list. Agents still set to it stop being able to speak in it, so change their voice first. Requires the admin role.
Body parameters
provider: "cartesia" or "inworld". The voice's provider: cartesia or inworld.voice_id: str. The custom voice's id.
Returns
VoiceOption
provider: str. The voice's provider; set it as an agent'stts.provider.voice_id: str. The provider's voice id; set it astts.voice_id.name: optional str or null. The voice's display name.description: optional str or null. The provider's short description of how the voice sounds.gender: optional str or null. The voice's gender as the provider labels it; empty when the provider gives none.accent: optional str or null. The voice's accent as the provider labels it.age: optional str or null. The voice's apparent age as the provider labels it.use_cases: optional List[str]. What the provider says the voice suits, e.g. customer support.tags: optional List[str]. Words the provider uses for how the voice sounds, e.g. warm, calm.locale: optional str or null. The voice's native locale, e.g. en-US, when the provider gives one.languages: optional List[str]. Two-letter codes of the languages the voice speaks.models: optional List[str]. Models the voice can be used with; any of them is a validtts.model_id.default_model_id: optional str or null. The model to use unless you need another; set it astts.model_id.custom: optional bool. True for a voice your organization cloned (only your organization sees it).
Example request
curl -X POST "https://api.hilus.ai/Platform/tts/voices/delete" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'