curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "cogtts",
"input": "<string>",
"voice": "tongtong"
}'
This response does not have an example.
使用 CogTTS 将文本转换为自然语音,支持多种声音、情感控制和语调调整。
curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "cogtts",
"input": "<string>",
"voice": "tongtong"
}'
This response does not have an example.
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type file
.