TTS
استدعِ Kling TTS عبر CometAPI POST /kling/v1/audio/tts لتحويل النص إلى كلام بأصوات متعددة اللغات، بالإضافة إلى حلول لأخطاء 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
توفر واجهة برمجة التطبيقات Kling TTS (Text-to-Speech) خدمات عالية الجودة لتحويل النص إلى كلام، مع دعم عدة لغات وخيارات صوتية متنوعة.الوثائق المرجعية
- مرجع API: وثائق Kling TTS API
- قائمة Voice ID: مرجع Voice ID المتاح
المشكلات الشائعة
خطأ Voice id not found
وصف المشكلة: عندما لا يتطابقvoice_id مع voice_language، ستُرجع واجهة برمجة التطبيقات الخطأ التالي:
voice_id المحدد يدعم voice_language الذي قمت بتحديده. ارجع إلى قائمة Voice ID للتحقق من اللغات التي يدعمها كل Voice ID.التفويضات
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.