TTS
Викликайте Kling TTS через CometAPI POST /kling/v1/audio/tts, щоб перетворювати текст на мовлення з багатомовними голосами, а також отримати виправлення для помилок voice_id not found.
Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
TTS
API Kling TTS (Text-to-Speech) надає високоякісні сервіси перетворення тексту на мовлення, підтримуючи кілька мов і варіанти голосів.Довідкова документація
- Посилання на API: Документація API Kling TTS
- Список Voice ID: Довідник доступних Voice ID
Поширені проблеми
Помилка Voice id not found
Опис проблеми: Колиvoice_id не відповідає voice_language, API поверне таку помилку:
voice_id підтримує вказаний вами voice_language. Зверніться до списку Voice ID, щоб перевірити, які мови підтримує кожен Voice ID.Авторизації
Bearer token authentication. Use your CometAPI key.
Заголовки
Content type of the request body.
Тіло
Text to synthesize into speech. Max 1000 characters.
Voice preset ID. Determines the speaker voice used for synthesis. See the Kling documentation for available voice IDs and their supported languages.
Language of the selected voice. Must match the language supported by the chosen voice_id. Values: zh (Chinese) or en (English).
Speech rate multiplier. Range 0.8–2.0 (one decimal place). Values outside this range are clamped automatically.
Відповідь
Success
The response is of type object.