Generate audio transcription synchronously.
speaker parameter is false)speaker parameter is true)whisper-1| Parameter | Type | Required | Description |
|---|---|---|---|
| asset_id | string | Yes | The unique identifier of the video or audio asset to transcribe |
| model | string | No | The transcription model to use (default: whisper-1) |
| speaker | boolean | No | Enable speaker diarization. When true, each segment includes a speaker identifier (default: false). Note: enabling this doubles the price. |
code, msg, data, success, and failed fieldsdata object contains:
model: The transcription model used (e.g., “whisper-1”)items: Array of transcription segments, each containing:
text: The transcribed text for the segmentstart_time: Start time of the segment in secondsend_time: End time of the segment in secondsspeaker: Speaker identifier (only present when speaker=true parameter is set)speaker=false: Items do not include the speaker fieldspeaker=true: Items include the speaker field with speaker identification| 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 transcription results |
| data.model | string | The transcription model used (e.g., “whisper-1”) |
| data.items | array[object] | Array of transcription segments with timing information |
| data.items[].text | string | Transcribed text for the segment |
| data.items[].start_time | number | Start time of the segment in seconds |
| data.items[].end_time | number | End time of the segment in seconds |
| data.items[].speaker | string | Speaker identifier (only present when speaker=true) |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
Transcription result
Response code indicating the result status
200
Response message describing the operation result
"success"
Response data object containing transcription results
Indicates whether the operation was successful
true
Indicates whether the operation failed
false