AUDIO

Delete Voice

Delete a stored voice. After deletion, the returned `voice_id` can no longer be used for HTTP speech or realtime TTS.

DELETE/v1/audio/voices/{voice_id}

Authorization

Authorizationstringheaderrequired

Bearer token — your API key. Example: Bearer sk-...

Deleting a stored voice removes the reference audio and its metadata. No copy is kept.

Clients should stop using the deleted voice_id immediately; later speech or realtime requests with that ID will fail.

Request body

multipart/form-data
voice_idstringrequired

Stored voice ID to delete, e.g. `qwen-tts-vc-voice_...`.

Response

successboolean
voice_idstring

Request

import requests

voice_id = "qwen-tts-vc-voice_..."
res = requests.delete(
    f"https://api.scx.ai/v1/audio/voices/{voice_id}",
    headers={"Authorization": "Bearer your-scx-api-key"},
)
res.raise_for_status()
print(res.json())