Paxa Labs

ลบเสียงที่ออกแบบเอง

DELETEhttps://api.paxalabs.com/v1/voices/designed/{id}

DELETE /v1/voices/designed/{id} ลบเสียงที่ออกแบบเองและคืนช่องให้แพ็กเกจ

ดูเป็น Markdown
curl -X DELETE https://api.paxalabs.com/v1/voices/designed/voice_3f9a1c2e7b4d4e8a9c0b1d2e3f4a5b6c \
  -H "Authorization: Bearer $PAXA_API_KEY"
{
  "id": "voice_3f9a1c2e7b4d4e8a9c0b1d2e3f4a5b6c"
}

การลบย้อนกลับไม่ได้ คำขอใหม่ที่ใช้เสียงนั้นจะตอบ 400 unknown_voice รวมถึงการส่งซ้ำด้วย Idempotency-Key เดิม ส่วนการเชื่อมต่อสดที่เปิดด้วยเสียงนั้นอยู่แล้วยังใช้เสียงนั้นต่อจนกว่าการเชื่อมต่อจะปิด การลบไม่ใช้เครดิตและไม่นับรวมในอัตราจำกัดคำขอ

เฮดเดอร์#

authorizationBearer pxa_...จำเป็น

Authorization: Bearer pxa_... (recommended).

x-api-keypxa_...

Alternative to the Authorization header. Ignored when Authorization is present.

การยืนยันตัวตน

พารามิเตอร์ในพาธ#

idstringจำเป็น

The designed voice's id, starting "voice_".

การตอบกลับ#

The voice is deleted. New requests in it answer 400 unknown_voice, and a live connection already open in it keeps it until the connection closes.

idstringจำเป็น

The deleted voice's id.

ข้อผิดพลาด#

400unknown_voiceThe voice id names no voice on the model's roster and no designed voice this account holds.
401unauthorizedThe request carried no API key, or the key is invalid or disabled.