Kết nối MayzCloud Voice API
Endpoint: POST https://api.mayzcloud.com/v1/audio/speech ·
Auth: Authorization: Bearer <API_KEY>
Chọn ngôn ngữ để xem cách kết nối
Mẫu dữ liệu trả về (OK / Fail)
Thành công — OK (HTTP 200)
{
"ok": true,
"audio_url": "/storage/audio/sample.wav",
"public_audio_url": "https://api.mayzcloud.com/storage/audio/sample.wav",
"voice_id": "vi_nu_nhe_nhang",
"points_charged": 28,
"remaining_points": 99972
}
Thất bại — Fail (HTTP 400 / 401 / 402)
{
"error": {
"code": "INSUFFICIENT_POINTS",
"message": "Không đủ điểm để thực hiện yêu cầu."
}
}