Generate speaker identification asynchronously.
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code indicating the result status |
| msg | string | Response message describing the operation result |
| data | object | Response data object containing task information |
| data.task_id | string | Unique identifier of the speaker identification task |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code (“0000” indicates success) |
| message | string | Status message (e.g., “SUCCESS”) |
| data | object | Response data object containing the speaker diarization result and metadata |
| data.data | object | Inner data object containing speaker segments and usage information |
| data.data.data | array | Array of speaker segments with timestamps |
| data.data.data[].start | number | Start time of the speaker segment in seconds |
| data.data.data[].end | number | End time of the speaker segment in seconds |
| data.data.data[].speaker | string | Speaker identifier (e.g., “SPEAKER_00”, “SPEAKER_06”) |
| data.data.usage_metadata | object | Usage statistics for the API call |
| data.data.usage_metadata.duration | number | Total audio duration in seconds |
| data.data.usage_metadata.model | string | The model used for speaker diarization (e.g., “pyannote”) |
| data.data.usage_metadata.output_tokens | integer | Number of output tokens (0 for speaker diarization) |
| data.data.usage_metadata.prompt_tokens | integer | Number of prompt tokens (0 for speaker diarization) |
| data.msg | string | Detailed message about the operation result |
| data.success | boolean | Indicates whether the speaker identification was successful |
| task_id | string | The task ID associated with this speaker identification request |
data.data.
Response Structure:
callback_response.data.data.datacallback_response.data.data.data[0].speakercallback_response.data.data.data[0].start to callback_response.data.data.data[0].endcallback_response.data.data.usage_metadatacallback_response.data.data.usage_metadata.durationcallback_response.data.data.usage_metadata.modelcallback_response.data.successcallback_response.task_idThe asset ID to identify speakers for
"re_657929111888723968"
Speaker identification task information
Response code indicating the result status
"0000"
Response message describing the operation result
"success"
Response data object containing task information
Indicates whether the operation was successful
true
Indicates whether the operation failed
false