문서API 참조AI 모델 API 엔드포인트오디오(Audio)OpenAI 네이티브 형식
텍스트 음성 변환
텍스트를 오디오로 변환합니다
Authorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Request Body
application/json
model*string
input*string
要转换的文本
Length
length <= 4096voice*string
Value in
"alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"response_format?string
Default
"mp3"Value in
"mp3" | "opus" | "aac" | "flac" | "wav" | "pcm"speed?number
Default
1Range
0.25 <= value <= 4Response Body
audio/mpeg
curl -X POST "https://api.moleapi.com/v1/audio/speech" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1", "input": "string", "voice": "alloy" }'"string"이 문서가 도움이 되었나요?
마지막 업데이트