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.