Перейти к содержимому

Rename Speakers

PATCH
/v1/objects/{object_id}/speakers
curl --request PATCH \
--url https://api.cloud.agentums.ru/v1/objects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/speakers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "names": { "additionalProperty": "example" } }'

Ручная коррекция спикеров («это говорил Дмитрий Никулин»): переименовать метки и перерисовать транскрипт (его подхватит протокол). Ключ — текущая подпись «Спикер N» или метка движка (SPEAKER_00). Правка сохраняется в записи.

object_id
required
Object Id
string format: uuid
x-hidden-token
Any of:
string
Media typeapplication/json
SpeakerRenames
object
names
required
Names
object
key
additional properties
string
Examplegenerated
{
"names": {
"additionalProperty": "example"
}
}

Successful Response

Media typeapplication/json
DiarizedOut
object
object_id
required
Object Id
string format: uuid
speakers
required
Speakers
object
key
additional properties
string
text
required
Text
string
Examplegenerated
{
"object_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"speakers": {
"additionalProperty": "example"
},
"text": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}