段落评测模式

最近更新时间:2024-05-30 17:12:12

我的收藏

评测模式描述

评测要求:支持不超过120个单词或者汉字,300秒音频时长。
评测维度:支持返回单词精准度,流利度,完整度。
评测功能:支持实时评测,原始单词,多组文本,主题词和关键词。

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。不超过120个单词
EvalMode
Integer
评估模式。2:段落评测模式

ServerType
Integer
评估语言。0:英文
请求示例

{
"RefText": "i go to school by bus",
"EvalMode": 2,
"ServerType": 0
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"9624-1668742474510-72461",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
SuggestedScore
Integer
建议评分
PronAccuracy
Integer
整体精准度
PronFluency
Integer
整体流利度
PronCompletion
Integer
整体完整度
Words.PronAccuracy
Integer
单词精准度
Words.PronFluency
Integer
单词流利度
Words.MatchTag
Integer
当前词的音频与文本的匹配情况
返回示例
{
"SuggestedScore":55.01958715326735,
"PronAccuracy":61.897034,
"PronFluency":0.7652744,
"PronCompletion":0.6666667,
"RequestId":"718134cd-ea66-4564-bc0b-2b5f79db1479",
"Words":[
{
"MemBeginTime":1160,
"MemEndTime":2330,
"PronAccuracy":89.132675,
"PronFluency":0.33263165,
"ReferenceWord":"i_0",
"Word":"i",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":2400,
"MemEndTime":2460,
"PronAccuracy":0.017944,
"PronFluency":1,
"ReferenceWord":"go_1",
"Word":"go",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":3150,
"MemEndTime":3180,
"PronAccuracy":-1,
"PronFluency":-1,
"ReferenceWord":"*",
"Word":"*",
"MatchTag":1,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":3320,
"MemEndTime":3970,
"PronAccuracy":-1,
"PronFluency":-1,
"ReferenceWord":"to_2",
"Word":"to",
"MatchTag":3,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":5090,
"MemEndTime":5710,
"PronAccuracy":-1,
"PronFluency":-1,
"ReferenceWord":"*",
"Word":"*",
"MatchTag":1,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":6030,
"MemEndTime":6950,
"PronAccuracy":67.58584,
"PronFluency":0.855894,
"ReferenceWord":"school_3",
"Word":"school",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":7380,
"MemEndTime":7890,
"PronAccuracy":82.411026,
"PronFluency":0.8578096,
"ReferenceWord":"by_4",
"Word":"by",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":8070,
"MemEndTime":8900,
"PronAccuracy":70.337685,
"PronFluency":0.780037,
"ReferenceWord":"bus_5",
"Word":"bus",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[

]
}
],
"SessionId":"9624-1668742474510-72461",
"Status":"Finished",
}

实时评测

主要作用是获取实时中间结果,实时展示评测内容。评测结果以最终结果为准。实现方式可参考语音输入模式 -- 流式评测

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。不超过120个单词。
EvalMode
Integer
评估模式。2:段落评测模式
ServerType
Integer
评估语言。0:英文
WorkMode
Integer
语音输入模式。0:流式分片
SentenceInfoEnabled
Integer
输出断句中间结果标识。1:输出
请求示例
{
"RefText": "i go to school by bus",
"EvalMode": 2,
"ServerType": 0
"WorkMode": 0,
"SentenceInfoEnabled": 1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":0,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"c089bc5e-66f4-11ed-b1c7-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
SentenceInfoSet.Words.PronAccuracy
Integer
单词精准度
SentenceInfoSet.Words.PronFluency
Integer
单词流利度
SentenceInfoSet.Words.MatchTag
Integer
当前词的音频与文本的匹配情况
返回示例

{
"PronAccuracy":-1,
"PronFluency":-1,
"PronCompletion":0.5,
"Words":Array[3],
"SessionId":"c089bc5e-66f4-11ed-b1c7-acde48001122",
"AudioUrl":"",
"SentenceInfoSet":[
{
"SentenceId":0,
"Words":[
{
"MemBeginTime":1090,
"MemEndTime":1580,
"PronAccuracy":96.12227,
"PronFluency":0.7536842,
"Word":"i",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"i_0",
"KeywordTag":0
},
{
"MemBeginTime":1610,
"MemEndTime":1870,
"PronAccuracy":97.68817,
"PronFluency":0.9448819,
"Word":"go",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"go_1",
"KeywordTag":0
},
{
"MemBeginTime":1870,
"MemEndTime":2130,
"PronAccuracy":98.834595,
"PronFluency":0.94608915,
"Word":"to",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"to_2",
"KeywordTag":0
}
],
"PronAccuracy":-1,
"PronFluency":-1,
"PronCompletion":0.5,
"SuggestedScore":0,
"RefTextId":-1,
"KeyWordHits":[

],
"UnKeyWordHits":[

]
}
],
"Status":"Evaluating",
"SuggestedScore":-0.75,
"RequestId":"175f2113-91cf-4965-a6ae-ce91ab124722"
}

原始单词

数字类型使用英文评测会转换为对应英文单词,可在对应返回字段获取原始数字以及单词下标

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。不超过30个单词
EvalMode
Integer
评估模式。2:段落评测模式
ServerType
Integer
评估语言。0:英文
请求示例

{
"RefText": "61",
"EvalMode": 2,
"ServerType": 0
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"4fcf-1668743785475-74099",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
Words.ReferenceWord
String
原始单词
返回示例

{
"SuggestedScore":48.603752,
"PronAccuracy":48.603752,
"PronFluency":0.92909586,
"PronCompletion":1,
"RequestId":"35c4ba32-7490-4372-9c74-e9c097683846",
"Words":[
{
"MemBeginTime":910,
"MemEndTime":1950,
"PronAccuracy":51.212902,
"PronFluency":0.89337784,
"ReferenceWord":"61_0",
"Word":"sixty",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[

]
},
{
"MemBeginTime":1950,
"MemEndTime":2290,
"PronAccuracy":45.9946,
"PronFluency":0.9648139,
"ReferenceWord":"61_0",
"Word":"one",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[

]
}
],
"SessionId":"4fcf-1668743785475-74099",
"AudioUrl":"",
"SentenceInfoSet":Array[1],
"Status":"Finished",
"RefTextId":0,
"KeyWordHits":[

],
"UnKeyWordHits":[

],
"blob":{

}
}

主题词和关键词

使用|划分多组文本,每组不超过120个单词。当预设多组文本,没有实时结果。

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本
Keyword
String
主题词和关键词。使用 | 划分不同的关键词
EvalMode
Integer
评估模式。2:段落评测模式
ServerType
Integer
评估语言。0:英文
请求示例
{
"EvalMode": 2,
"RefText": "i go to school by bus | i go to school by train | i go to school by car",
"Keyword":"bus | train | car",
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"a74c17fe-66f5-11ed-885b-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
Words.KeywordTag
String
主题词命中标志
RefTextId
Integer
匹配候选文本的序号
KeyWordHits
Array of Float
主题词命中标志
返回示例

{
"PronAccuracy":96.39211,
"PronFluency":0.8702884,
"PronCompletion":1,
"Words":[
{
"MemBeginTime":1190,
"MemEndTime":1870,
"PronAccuracy":92.89984,
"PronFluency":0.6360371,
"Word":"i",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"i_0",
"KeywordTag":0
},
{
"MemBeginTime":1900,
"MemEndTime":2190,
"PronAccuracy":98.48607,
"PronFluency":0.9317913,
"Word":"go",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"go_1",
"KeywordTag":0
},
{
"MemBeginTime":2190,
"MemEndTime":2470,
"PronAccuracy":98.90927,
"PronFluency":0.9357265,
"Word":"to",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"to_2",
"KeywordTag":0
},
{
"MemBeginTime":2470,
"MemEndTime":3030,
"PronAccuracy":95.359535,
"PronFluency":0.9408119,
"Word":"school",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"school_3",
"KeywordTag":0
},
{
"MemBeginTime":3030,
"MemEndTime":3370,
"PronAccuracy":96.6288,
"PronFluency":0.9061842,
"Word":"by",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"by_4",
"KeywordTag":0
},
{
"MemBeginTime":3370,
"MemEndTime":4070,
"PronAccuracy":96.06916,
"PronFluency":0.87117964,
"Word":"train",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"train_5",
"KeywordTag":1
}
],
"SessionId":"a74c17fe-66f5-11ed-885b-acde48001122",
"Status":"Finished",
"SuggestedScore":96.39211,
"RefTextId":1,
"KeyWordHits":[
0,
1,
0
],
"RequestId":"48b6c972-7991-4dae-bf11-f741e49f721c"
}