오디오 모델
음성 생성
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.