Create Speech
Використовуйте CometAPI POST /v1/audio/speech, щоб перетворювати текст на реалістичне аудіо за допомогою TTS-моделей. Обирайте з 10 голосів, налаштовуйте швидкість і отримуйте вихід у форматах MP3, OPUS, AAC, FLAC, WAV або PCM.
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.
Тіло
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.
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Відповідь
The audio file content.
The response is of type file.