نماذج الصوت
Create Speech
استخدم CometAPI POST /v1/audio/speech لتحويل النص إلى صوت واقعي باستخدام نماذج TTS. اختر من بين 10 أصوات، واضبط السرعة، وأخرج النتيجة بصيغ MP3 أو OPUS أو AAC أو FLAC أو WAV أو PCM.
POST
Python (OpenAI SDK)
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.
التفويضات
Bearer token authentication. Use your CometAPI key.
الجسم
application/json
The TTS model to use. Choose a current speech model from the Models page.
The text to generate audio for. Maximum length is 4096 characters.
Maximum string length:
4096The voice to use for speech synthesis.
الخيارات المتاحة:
alloy, ash, ballad, coral, echo, fable, onyx, nova, sage, shimmer The audio output format.
الخيارات المتاحة:
mp3, opus, aac, flac, wav, pcm The speed of the generated audio. Select a value between 0.25 and 4.0.
النطاق المطلوب:
0.25 <= x <= 4الاستجابة
200 - audio/mpeg
The audio file content.
The response is of type file.