Patch segments
Patch existing project transcription segments.
curl --request PATCH \
--url https://api.rask.ai/v2/projects/{project_id}/transcription/segments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"segments": [
{
"id": "<string>",
"src": {
"text": "<string>",
"lang": "<string>"
},
"dst": {
"text": "<string>",
"lang": "<string>"
},
"speaker": "<string>",
"start": "<string>",
"end": "<string>"
}
]
}'
{
"segments": [
{
"src": {
"text": "<string>",
"lang": "<string>"
},
"dst": {
"text": "<string>",
"lang": "<string>"
},
"speaker": "<string>",
"start": "<string>",
"end": "<string>",
"id": "<string>",
"status": "processing"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Project ID
Body
List of project transcriotion segments to update. Only the fields that need to be updated must be specified.
Segment ID
Speaker identifier. Must be specified in SPEAKER_XX
format (case-sensitive), where XX
corresponds to Speaker's index, starting with 00.
Segment start time. Must be valid HH:MM:SS,mmm
timestamp
Segment end time. Must be valid HH:MM:SS,mmm
timestamp
Response
List of segments
Segment start time. Must be valid HH:MM:SS,mmm
timestamp
Segment end time. Must be valid HH:MM:SS,mmm
timestamp
Segment ID
Segment status
processing
, updated
, done
, error
Speaker identifier. Must be specified in SPEAKER_XX
format (case-sensitive), where XX
corresponds to Speaker's index, starting with 00.
curl --request PATCH \
--url https://api.rask.ai/v2/projects/{project_id}/transcription/segments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"segments": [
{
"id": "<string>",
"src": {
"text": "<string>",
"lang": "<string>"
},
"dst": {
"text": "<string>",
"lang": "<string>"
},
"speaker": "<string>",
"start": "<string>",
"end": "<string>"
}
]
}'
{
"segments": [
{
"src": {
"text": "<string>",
"lang": "<string>"
},
"dst": {
"text": "<string>",
"lang": "<string>"
},
"speaker": "<string>",
"start": "<string>",
"end": "<string>",
"id": "<string>",
"status": "processing"
}
]
}