文本转语音
音频(Audio)/原生OpenAI格式
文本转语音
将文本转换为音频
POST
文本转语音
Authorizations
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
Body
application/json
Example:
"tts-1"
要转换的文本
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
成功生成音频
The response is of type file.