| 参数 | 类型 | 说明 |
|---|---|---|
| audio_format | string | 源文件中音频的格式。 |
| channels | List[int] | 源文件中音频的音轨索引信息,对单轨音频返回[0],对双轨音频返回[0, 1],以此类推。 |
| original_sampling_rate | int | 源文件中的原始音频时长(ms)。 |
| content_duration | int | 音轨中被判定为语音内容的时长(ms)。 |
| transcript | string | 段落级别的语音转写结果。 |
| sentences | List[] | 句子级别的语音转写结果。 |
| words | List[] | 源文件中音频的格式。 |
| begin_time | int | 开始时间戳(ms)。 |
| end_time | int | 结束时间戳(ms)。 |
| text | string | 语音转写结果。 |
| punctuation | string | 预测出的词之后的标点符号(如有)。 |
{
"taskId": "string"
}curl --location --request POST '/fileAsr/searchResults' \
--header 'Content-Type: application/json' \
--data-raw '{
"taskId": "string"
}'{
"code": "200",
"msg": "调用成功",
"data": {
"status": "SUCCEEDED",
"subResults": [
{
"status": "SUCCEEDED",
"message": null,
"transcriptionBody": {
"file_url": "https://dashscope.oss-cn-beijing.aliyuncs.com/samples/audio/paraformer/hello_world_female2.wav",
"transcripts": [
{
"sentences": [
{
"sentence_id": 1,
"end_time": 3820,
"words": [
{
"end_time": 596,
"punctuation": "",
"begin_time": 100,
"text": "Hello "
},
{
"end_time": 844,
"punctuation": ", ",
"begin_time": 596,
"text": "world"
},
{
"end_time": 1092,
"punctuation": "",
"begin_time": 844,
"text": "这"
},
{
"end_time": 1340,
"punctuation": "",
"begin_time": 1092,
"text": "里"
},
{
"end_time": 1588,
"punctuation": "",
"begin_time": 1340,
"text": "是"
},
{
"end_time": 1836,
"punctuation": "",
"begin_time": 1588,
"text": "阿"
},
{
"end_time": 2084,
"punctuation": "",
"begin_time": 1836,
"text": "里"
},
{
"end_time": 2332,
"punctuation": "",
"begin_time": 2084,
"text": "巴"
},
{
"end_time": 2580,
"punctuation": "",
"begin_time": 2332,
"text": "巴"
},
{
"end_time": 2828,
"punctuation": "",
"begin_time": 2580,
"text": "语"
},
{
"end_time": 3076,
"punctuation": "",
"begin_time": 2828,
"text": "音"
},
{
"end_time": 3324,
"punctuation": "",
"begin_time": 3076,
"text": "实"
},
{
"end_time": 3572,
"punctuation": "",
"begin_time": 3324,
"text": "验"
},
{
"end_time": 3820,
"punctuation": "。",
"begin_time": 3572,
"text": "室"
}
],
"begin_time": 100,
"text": "Hello world, 这里是阿里巴巴语音实验室。"
}
],
"content_duration_in_milliseconds": 3720,
"text": "Hello world, 这里是阿里巴巴语音实验室。",
"channel_id": 0
}
],
"properties": {
"channels": [
0
],
"audio_format": "pcm_s16le",
"original_sampling_rate": 16000,
"original_duration_in_milliseconds": 3834
}
}
},
{
"status": "SUCCEEDED",
"message": null,
"transcriptionBody": {
"file_url": "https://dashscope.oss-cn-beijing.aliyuncs.com/samples/audio/paraformer/hello_world_male2.wav",
"transcripts": [
{
"sentences": [
{
"sentence_id": 1,
"end_time": 4720,
"words": [
{
"end_time": 629,
"punctuation": "",
"begin_time": 0,
"text": "Hello "
},
{
"end_time": 944,
"punctuation": ", ",
"begin_time": 629,
"text": "world"
},
{
"end_time": 1258,
"punctuation": "",
"begin_time": 944,
"text": "这"
},
{
"end_time": 1573,
"punctuation": "",
"begin_time": 1258,
"text": "里"
},
{
"end_time": 1888,
"punctuation": "",
"begin_time": 1573,
"text": "是"
},
{
"end_time": 2202,
"punctuation": "",
"begin_time": 1888,
"text": "阿"
},
{
"end_time": 2517,
"punctuation": "",
"begin_time": 2202,
"text": "里"
},
{
"end_time": 2832,
"punctuation": "",
"begin_time": 2517,
"text": "巴"
},
{
"end_time": 3146,
"punctuation": "",
"begin_time": 2832,
"text": "巴"
},
{
"end_time": 3461,
"punctuation": "",
"begin_time": 3146,
"text": "语"
},
{
"end_time": 3776,
"punctuation": "",
"begin_time": 3461,
"text": "音"
},
{
"end_time": 4090,
"punctuation": "",
"begin_time": 3776,
"text": "实"
},
{
"end_time": 4405,
"punctuation": "",
"begin_time": 4090,
"text": "验"
},
{
"end_time": 4720,
"punctuation": "。",
"begin_time": 4405,
"text": "室"
}
],
"begin_time": 0,
"text": "Hello world, 这里是阿里巴巴语音实验室。"
}
],
"content_duration_in_milliseconds": 4720,
"text": "Hello world, 这里是阿里巴巴语音实验室。",
"channel_id": 0
}
],
"properties": {
"channels": [
0
],
"audio_format": "pcm_s16le",
"original_sampling_rate": 16000,
"original_duration_in_milliseconds": 4726
}
}
}
]
},
"traceId": "ed7d95599b9a04f5"
}