Text-to-Speech
Native OpenAI Format
Text-to-Speech
将文本转换为音频
POST
Text-to-Speech
Authorizations
Use Bearer Token authentication Format: Authorization: Bearer sk-xxxxxx
Body
application/json
Example:
"tts-1"
Text to convert
Maximum string length:
4096Available options:
alloy, echo, fable, onyx, nova, shimmer Available options:
mp3, opus, aac, flac, wav, pcm Required range:
0.25 <= x <= 4Response
200 - audio/mpeg
Success - Audio generated
The response is of type file.
