Audiomodellen
Create Speech
Gebruik CometAPI POST /v1/audio/speech om tekst om te zetten in levensechte audio met TTS-modellen. Kies uit 10 stemmen, pas de snelheid aan en voer uit in MP3, OPUS, AAC, FLAC, WAV of 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.
Autorisaties
Bearer token authentication. Use your CometAPI key.
Body
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.
Beschikbare opties:
alloy, ash, ballad, coral, echo, fable, onyx, nova, sage, shimmer The audio output format.
Beschikbare opties:
mp3, opus, aac, flac, wav, pcm The speed of the generated audio. Select a value between 0.25 and 4.0.
Vereist bereik:
0.25 <= x <= 4Respons
200 - audio/mpeg
The audio file content.
The response is of type file.