Tworzenie mowy Kling
Wywołaj Kling TTS przez CometAPI POST /kling/v1/audio/tts, aby konwertować tekst na mowę z wielojęzycznymi głosami oraz rozwiązać błędy voice_id not found.
TTS
Interfejs API Kling TTS (Text-to-Speech) zapewnia wysokiej jakości usługi zamiany tekstu na mowę, obsługując wiele języków i opcji głosowych.Dokumentacja referencyjna
- Dokumentacja API: Dokumentacja API Kling TTS
- Lista Voice ID: Lista dostępnych Voice ID
Typowe problemy
Błąd voice id not found
Opis problemu: Gdyvoice_id nie pasuje do voice_language, API zwróci następujący błąd:
voice_id obsługuje określony przez Ciebie voice_language. Sprawdź listę Voice ID, aby zobaczyć, które języki obsługuje każdy identyfikator głosu.Autoryzacje
Bearer token authentication. Use your CometAPI key.
Nagłówki
Content type of the request body.
Treść
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.