Create Kling speech
Chiama Kling TTS tramite CometAPI POST /kling/v1/audio/tts per convertire il testo in parlato con voci multilingue, oltre a correzioni per gli errori voice_id not found.
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.