Створення мовлення Kling
Викликайте Kling TTS через CometAPI POST /kling/v1/audio/tts, щоб перетворювати текст на мовлення з багатомовними голосами, а також виправляти помилки voice_id not found.
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.