Tạo âm thanh từ văn bản với Kling
Sử dụng API Kling Text to Audio trong CometAPI để chuyển đổi prompt văn bản thành âm thanh với các tùy chọn điều khiển phong cách giọng nói, thời lượng và đầu ra sẵn sàng cho streaming.
Trước khi gọi
- Giữ
promptngắn gọn và trực tiếp - Bắt đầu với
durationtừ 3 đến 10 giây - Xem
callback_urlvàexternal_task_idlà các công cụ hỗ trợ tích hợp tùy chọn, không phải yêu cầu cốt lõi
Luồng tác vụ
Gửi tác vụ âm thanh
Thăm dò tác vụ
Lưu trữ đầu ra âm thanh
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
Text prompt describing the audio to generate. Max 200 characters.
Duration of the generated audio in seconds. Range: 3.0–10.0, supports one decimal place.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.
Webhook URL for task status notifications. The server sends a callback when the task status changes.