Перейти к содержимому
Главная

Kling TTS

kling-tts

Kirin TTS text-to-speech model for synthesizing audio from text with selectable voice and speech speed.

POST /v1/queue/kling-tts # Создать задачу
GET /v1/queue/kling-tts/requests/{request_id}/status # Проверить статус
GET /v1/queue/kling-tts/requests/{request_id}/response # Получить результат
PUT /v1/queue/kling-tts/requests/{request_id}/cancel # Отменить задачу
Окно терминала
curl --request 'POST' 'https://odirouter.ai/model/v1/queue/kling-tts' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--location \
--data-raw '{
"text": "Throughout my time in college, several memorable event left a significant impact on my life",
"voice_id": "oversea_male1",
"voice_language": "en",
"voice_speed": 1
}'

Text to synthesize into audio

Maximum length: 1000 characters. Overlong content returns an error.

The system validates text content and returns an error if the content cannot be processed.


Voice ID

Multiple voices are available. Voice IDs are tied to voice language; use a voice ID that matches the voice_language value.

Voice preview uses fixed preview text and does not support custom preview text.

Voice preview file naming convention: voice_name#voice_id#voice_language


Voice language

Default: zh

Options: zh, en

The voice language must match the selected voice_id.


Speech speed

Default: 1.0

Valid range: 0.8 - 2.0

Precision: 1 decimal place. Extra decimal places are rounded automatically.


Callback URL


Custom task ID. Does not override the system-generated task ID but can be used to query the task.

Note: Must be unique per user.

{
"request_id": "task_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/kling-tts/requests/task_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/kling-tts/requests/task_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/kling-tts/requests/task_01hxyz.../cancel",
"queue_position": 0
}
ПолеТипОписание
request_idstringИдентификатор задачи для последующей проверки статуса, получения результата и отмены.
response_urlstringURL для получения итогового результата.
status_urlstringURL для проверки статуса задачи.
cancel_urlstringURL для отмены задачи.
queue_positionintТекущая позиция в очереди.