TTS
Call Kling TTS via CometAPI POST /kling/v1/audio/tts to convert text to speech with multilingual voices, plus fixes for voice_id not found errors.
TTS
The Kling TTS (Text-to-Speech) API provides high-quality text-to-speech services, supporting multiple languages and voice options.Reference documentation
- API Reference: Kling TTS API Documentation
- Voice ID List: Available Voice ID Reference
Common issues
Voice id not found error
Issue Description: Whenvoice_id does not match voice_language, the API will return the following error:
voice_id supports your specified voice_language. Refer to the Voice ID List to check which languages each voice ID supports.Authorizations
Bearer token authentication. Use your CometAPI key.
Headers
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.
Response
Success
The response is of type object.