TTS
Roep Kling TTS aan via CometAPI POST /kling/v1/audio/tts om tekst naar spraak om te zetten met meertalige stemmen, plus oplossingen voor voice_id not found-fouten.
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
De Kling TTS (Text-to-Speech) API biedt hoogwaardige tekst-naar-spraakdiensten en ondersteunt meerdere talen en stemopties.Referentiedocumentatie
- API Reference: Kling TTS API-documentatie
- Voice ID List: Referentie van beschikbare Voice ID’s
Veelvoorkomende problemen
Voice id not found-fout
Probleembeschrijving: Wanneervoice_id niet overeenkomt met voice_language, retourneert de API de volgende fout:
voice_id je opgegeven voice_language ondersteunt. Raadpleeg de Voice ID List om te controleren welke talen door elke voice ID worden ondersteund.Autorisaties
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.
Respons
Success
The response is of type object.