Skip to main content
POST
/
text-to-audio
文字转语音
curl --request POST \
  --url http://{api_base_url}/text-to-audio \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "text": "<string>",
  "user": "<string>"
}
'
This response does not have an example.

Authorizations

Authorization
string
header
required

API-Key 鉴权。所有 API 请求都应在 Authorization HTTP Header 中包含你的 API-Key,格式为:Bearer {API_KEY}。强烈建议开发者把 API-Key 放在后端存储,而非客户端,以免泄露。

Body

application/json

需要 user。提供 message_idtext

user
string
required

用户标识。

message_id
string<uuid>

消息ID (优先)。

text
string

语音生成内容。

Response

成功生成语音文件。

The response is of type file.