TTS
Wywołaj Kling TTS przez CometAPI POST /kling/v1/audio/tts, aby konwertować tekst na mowę z użyciem wielojęzycznych głosów, a także rozwiązywać błędy 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
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
- API Reference: Dokumentacja API Kling TTS
- Voice ID List: 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. Skorzystaj z Voice ID List, aby sprawdzić, które języki obsługuje każdy Voice ID.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.
Odpowiedź
Success
The response is of type object.