Update Speaker Events
PUT {{base_url}}/v1/conversations/{{conversation_id}}/speakers
Defination
Update an existing member in an conversation. This API can be used for updating the unique speakers detected as members from diarization as well.
Endpoint:
https://docs.symbl.ai/?shell#put-update-members
Sample Request:
curl --location --request PUT 'https://api.symbl.ai/v1/conversations/{conversationId}/members/fc9b35cd-361f-41c6-9029-0944d21c7150' --header 'Content-Type: application/json' --header 'x-api-key: <valid-generated-token' --data-raw '{
id
: fc9b35cd-361f-41c6-9029-0944d21c7150
,
email
: john@example.com
,
name
: John
}'
Request Body
{"speakerEvents"=>[{"type"=>"started_speaking", "user"=>{"id"=>"4194eb50-357d-4712-a02d-94215ead1064", "name"=>"Derek", "email"=>"Derek@example.com"}, "offset"=>{"seconds"=>0, "nanos"=>5000000000}}, {"type"=>"stopped_speaking", "user"=>{"id"=>"4194eb50-357d-4712-a02d-94215ead1064", "name"=>"Derek", "email"=>"Derek@example.com"}, "offset"=>{"seconds"=>15, "nanos"=>5000000000}}, {"type"=>"started_speaking", "user"=>{"id"=>"4194eb50-357d-4712-a02d-94215ead2104", "name"=>"Richard", "email"=>"Richard@example.com"}, "offset"=>{"seconds"=>10, "nanos"=>5000000000}}, {"type"=>"stopped_speaking", "user"=>{"id"=>"4194eb50-357d-4712-a02d-94215ead2104", "name"=>"Richard", "email"=>"Richard@example.com"}, "offset"=>{"seconds"=>20, "nanos"=>5000000000}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-key | string | ||
Content-Type | string |