TTS
Chiama Kling TTS tramite CometAPI POST /kling/v1/audio/tts per convertire il testo in voce con voci multilingue, oltre a correzioni per gli errori 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
L’API Kling TTS (Text-to-Speech) fornisce servizi di sintesi vocale di alta qualità, supportando più lingue e opzioni vocali.Documentazione di riferimento
- Riferimento API: Documentazione API Kling TTS
- Elenco Voice ID: Riferimento dei Voice ID disponibili
Problemi comuni
Errore Voice id not found
Descrizione del problema: Quandovoice_id non corrisponde a voice_language, l’API restituirà il seguente errore:
voice_id selezionato supporti il voice_language specificato. Fai riferimento all’Elenco Voice ID per verificare quali lingue supporta ciascun voice ID.Autorizzazioni
Bearer token authentication. Use your CometAPI key.
Intestazioni
Content type of the request body.
Corpo
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.
Risposta
Success
The response is of type object.