转写 API
查询转写任务
按 transcription_id 查询任务状态与结果。进行中持续轮询,SUCCESS 时 data 就绪。
GET
https://platform.ikho.cn/developer/api/open/partner/ai/transcriptions/{transcription_id}
试一试
鉴权
X-Client-Id
string
header
必填
你的 client_id。
X-Client-Api-Key
string
header
必填
你的 api_key。
路径参数
transcription_id
string
path
必填
提交音频时返回的 transcription_id。
响应
transcription_id
string
任务标识。
status
string
任务状态:PENDING、RECEIVED、STARTED、PROGRESS 表示进行中,继续轮询;SUCCESS 表示结果就绪;FAILURE、REVOKED 为终态失败。
data
object
状态为 SUCCESS 时填充。
子属性
language
string
识别到或指定的语言。
duration
integer
音频时长,单位为秒。
segments
array
按时间对齐的逐句片段。
子属性
speaker
string
说话人标签,开启说话人分离时返回。
start_ms
integer
片段起始时间,单位为毫秒。
end_ms
integer
片段结束时间,单位为毫秒。