TTS
Panggil Kling TTS melalui CometAPI POST /kling/v1/audio/tts untuk mengubah teks menjadi suara dengan voice multibahasa, serta perbaikan untuk error 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) menyediakan layanan text-to-speech berkualitas tinggi, dengan dukungan untuk berbagai bahasa dan pilihan voice.Dokumentasi referensi
- Referensi API: Dokumentasi API Kling TTS
- Daftar Voice ID: Referensi Voice ID yang tersedia
Masalah umum
Error voice id not found
Deskripsi masalah: Saatvoice_id tidak cocok dengan voice_language, API akan mengembalikan error berikut:
voice_id yang dipilih mendukung voice_language yang Anda tentukan. Lihat Daftar Voice ID untuk memeriksa bahasa apa saja yang didukung oleh setiap voice ID.Otorisasi
Bearer token authentication. Use your CometAPI key.
Header
Content type of the request body.
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.
Respons
Success
The response is of type object.