Streaming
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v1/text-to-speech/{voice_id}/stream
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v1/text-to-speech//stream' \
--header 'xi-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model_id": "<string>",
"pronunciation_dictionary_locators": [
{
"pronunciation_dictionary_id": "<string>",
"version_id": "<string>"
}
],
"text": "<string>",
"voice_settings": {
"similarity_boost": 123,
"stability": 123,
"style": 123,
"use_speaker_boost": true
}
}'
响应示例响应示例
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
请求参数
Path 参数
voice_id
string
必需
Header 参数
Content-Type
string
必需
示例值:
application/json
xi-api-key
string
可选
Body 参数application/json