Generate audio transcription synchronously.
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
"0000"
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