TTS
Chame o Kling TTS via CometAPI POST /kling/v1/audio/tts para converter texto em fala com vozes multilíngues, além de correções para erros de 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
A API Kling TTS (Text-to-Speech) fornece serviços de conversão de texto em fala de alta qualidade, com suporte a vários idiomas e opções de voz.Documentação de referência
- Referência da API: Documentação da API Kling TTS
- Lista de Voice ID: Referência de Voice ID disponíveis
Problemas comuns
Erro de Voice id not found
Descrição do problema: Quandovoice_id não corresponde a voice_language, a API retornará o seguinte erro:
voice_id selecionado oferece suporte ao voice_language especificado. Consulte a Lista de Voice ID para verificar quais idiomas cada Voice ID suporta.Autorizações
Bearer token authentication. Use your CometAPI key.
Cabeçalhos
Content type of the request body.
Corpo
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.
Resposta
Success
The response is of type object.