TTS
Metni konuşmaya dönüştürmek için çok dilli seslerle CometAPI üzerinden Kling TTS POST /kling/v1/audio/tts çağrısı yapın; ayrıca voice_id not found hataları için çözümler içerir.
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
Kling TTS (Text-to-Speech) API, birden fazla dili ve ses seçeneğini destekleyerek yüksek kaliteli metinden konuşmaya dönüştürme hizmetleri sunar.Referans dokümantasyonu
- API Reference: Kling TTS API Dokümantasyonu
- Voice ID List: Kullanılabilir Voice ID Referansı
Yaygın sorunlar
Voice id not found hatası
Sorun açıklaması:voice_id, voice_language ile eşleşmediğinde API aşağıdaki hatayı döndürür:
voice_id değerinin belirttiğiniz voice_language değerini desteklediğinden emin olun. Her bir voice ID’nin hangi dilleri desteklediğini kontrol etmek için Voice ID List bağlantısına bakın.Yetkilendirmeler
Bearer token authentication. Use your CometAPI key.
Başlıklar
Content type of the request body.
Gövde
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.
Yanıt
Success
The response is of type object.