Kling speech oluşturma
Metni çok dilli seslerle konuşmaya dönüştürmek için CometAPI POST /kling/v1/audio/tts üzerinden Kling TTS çağrısı yapın; ayrıca voice_id not found hataları için çözümler de içerir.
TTS
Kling TTS (Text-to-Speech) API, birden fazla dili ve ses seçeneğini destekleyen yüksek kaliteli metinden konuşmaya 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.