AI 模型接口音频(Audio)原生OpenAI格式
文本转语音
将文本转换为音频
Authorization
BearerAuth AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
audio/mpeg
curl -X POST "https://yongmuai.com/v1/audio/speech" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1", "input": "string", "voice": "alloy" }'"string"这篇文档对您有帮助吗?
最后更新于