更新声纹
POST
/openai/v1/tag/update
V4.0
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
x-vai-token
string
业务TOKEN
Body 参数application/json
channel
string
必需
tagId
string
声纹ID
tagInfo
string
可选
files
array [object {2}]
必需
fileId
string
已上传的文件标识
text
string
可选
needCheckInfo
boolean
可选
示例
{
"channel": "string",
"tagId": "string",
"tagInfo": "string",
"files": [
{
"fileId": "string",
"text": "string"
}
],
"needCheckInfo": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openai/v1/tag/update' \
--header 'x-vai-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel": "string",
"tagId": "string",
"tagInfo": "string",
"files": [
{
"fileId": "string",
"text": "string"
}
],
"needCheckInfo": true
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
错误消息
rid
string
交易请求唯一标识
data
object | null
返回数据
vpId
string
声纹ID
vpName
string
声纹名
checkInfo
array [object {5}]
音频检测信息集
示例
{
"code": 0,
"msg": "string",
"rid": "string",
"data": {
"vpId": "string",
"vpName": "string",
"checkInfo": [
{
"fileId": "string",
"vadCheck": "string",
"asvCheck": "string",
"textMatch": "string",
"isValid": 0
}
]
}
}
修改于 2024-02-26 07:27:02