TTS
CometAPI POST /kling/v1/audio/tts를 통해 Kling TTS를 호출하여 텍스트를 음성으로 변환하고, 다국어 음성 및 voice_id not found 오류에 대한 해결 방법을 제공합니다.
TTS
Kling TTS(Text-to-Speech) API는 여러 언어와 음성 옵션을 지원하는 고품질 텍스트 음성 변환 서비스를 제공합니다.Reference documentation
- API Reference: Kling TTS API Documentation
- Voice ID List: 사용 가능한 Voice ID 참조
Common issues
Voice id not found error
Issue Description:voice_id가 voice_language와 일치하지 않으면, API는 다음 오류를 반환합니다:
voice_id가 지정한 voice_language를 지원하는지 확인하세요. 각 voice ID가 지원하는 언어는 Voice ID List를 참조하세요.인증
Bearer token authentication. Use your CometAPI key.
헤더
Content type of the request body.
본문
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.
응답
Success
The response is of type object.