评测模式描述
评测要求:支持不超过30个单词或者汉字,60秒音频时长。
评测维度:支持返回单词精准度,流利度,完整度,切题度。
评测功能:支持原始单词,多组分支,主题词和关键词,关键词组,候选单词数组,负向关键词。
请求参数
主要请求参数说明
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本。可以使用 | 划分成多个分支 |
EvalMode | Integer | 评估模式。5:情景评测模式 |
ServerType | Integer | 评估语言。0:英文 |
请求示例
{"RefText": "i go to school by bus","EvalMode": 5,"ServerType": 0,"WorkMode":1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"619c57c8-6713-11ed-b99b-acde48001122","ScoreCoeff":1.0}
返回结果
主要返回结果如下:
参数名称 | 类型 | 描述 |
SuggestedScore | Integer | 建议评分 |
PronAccuracy | Integer | 整体精准度 |
PronFluency | Integer | 整体流利度 |
PronCompletion | Integer | 整体完整度 |
Words.PronAccuracy | Integer | 单词精准度 |
Words.PronFluency | Integer | 单词流利度 |
Words.MatchTag | Integer | 当前词的音频与文本的匹配情况 |
返回示例
{"PronAccuracy":96.392105,"PronFluency":0.8702884,"PronCompletion":1,"Words":[{"MemBeginTime":290,"MemEndTime":970,"PronAccuracy":92.89983,"PronFluency":0.6360371,"Word":"i","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"i_0","KeywordTag":0},{"MemBeginTime":1000,"MemEndTime":1290,"PronAccuracy":98.48607,"PronFluency":0.9317913,"Word":"go","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"go_1","KeywordTag":0},{"MemBeginTime":1290,"MemEndTime":1570,"PronAccuracy":98.90927,"PronFluency":0.9357265,"Word":"to","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"to_2","KeywordTag":0},{"MemBeginTime":1570,"MemEndTime":2130,"PronAccuracy":95.359535,"PronFluency":0.9408119,"Word":"school","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"school_3","KeywordTag":0},{"MemBeginTime":2130,"MemEndTime":2470,"PronAccuracy":96.6288,"PronFluency":0.9061842,"Word":"by","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"by_4","KeywordTag":0},{"MemBeginTime":2470,"MemEndTime":3170,"PronAccuracy":96.06916,"PronFluency":0.87117964,"Word":"train","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"train_5","KeywordTag":0}],"SessionId":"619c57c8-6713-11ed-b99b-acde48001122","Status":"Finished","SuggestedScore":96.392105,"RefTextId":1,"RequestId":"8f3ed8d5-0a7c-4965-9bbe-cd4c9c7ca3c8"}
主题词和关键词
可以使用|划分多组文本,每组不超过120个单词。
请求参数
主要请求参数说明
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本 |
Keyword | Sting | 主题词和关键词。使用|划分不同主题词,使用#划分不同主题词组 |
EvalMode | Integer | 评估模式。5:情景评测模式 |
ServerType | Integer | 评估语言。0:英文 |
请求示例
{"RefText": "i go to school by bus | i go to school by train | i go to school by car","EvalMode": 5,"Keyword": "bus | {::cmd{F_UKEY=true}} train # car","WorkMode":1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"dd507d7a-658f-11ed-91af-acde48001122","ScoreCoeff":1.0}
返回结果
主要返回结果
参数名称 | 类型 | 描述 |
PronAccuracy | Integer | 准确度 |
PronCompletion | Integer | 切题度 |
Words.KeywordTag | String | 主题词命中标志 |
RefTextId | Integer | 匹配候选文本的序号 |
KeyWordHits | Array of Float | 主题词命中标志 |
UnKeyWordHits | Array of Float | 负向主题词命中标志 |
返回示例
{"PronAccuracy": 96.20276,"PronFluency": 0.81560373,"PronCompletion": -1,"Words": [{"MemBeginTime": 270,"MemEndTime": 660,"PronAccuracy": 96.20276,"PronFluency": 0.81560373,"Word": "i","MatchTag": 0,"PhoneInfos": [],"ReferenceWord": "i_0","KeywordTag": 0},{"MemBeginTime": -1,"MemEndTime": -1,"PronAccuracy": -1,"PronFluency": -1,"Word": "go","MatchTag": 2,"PhoneInfos": [],"ReferenceWord": "go_1","KeywordTag": 0},{"MemBeginTime": -1,"MemEndTime": -1,"PronAccuracy": -1,"PronFluency": -1,"Word": "to","MatchTag": 2,"PhoneInfos": [],"ReferenceWord": "to_2","KeywordTag": 0},{"MemBeginTime": -1,"MemEndTime": -1,"PronAccuracy": -1,"PronFluency": -1,"Word": "school","MatchTag": 3,"PhoneInfos": [],"ReferenceWord": "school_3","KeywordTag": 0},{"MemBeginTime": -1,"MemEndTime": -1,"PronAccuracy": -1,"PronFluency": -1,"Word": "by","MatchTag": 3,"PhoneInfos": [],"ReferenceWord": "by_4","KeywordTag": 0},{"MemBeginTime": -1,"MemEndTime": -1,"PronAccuracy": -1,"PronFluency": -1,"Word": "car","MatchTag": 3,"PhoneInfos": [],"ReferenceWord": "car_5","KeywordTag": 0}],"SessionId": "dd507d7a-658f-11ed-91af-acde48001122","Status": "Finished","SuggestedScore": 96.20276,"RefTextId": 2,"KeyWordHits": [0],"UnKeyWordHits": [],"RequestId": "204bb73f-e1b2-45ab-b2f7-188cc765cecc"}
候选单词数组
除了使用 | 划分不同分支,也可以使用 @@{::words{文本}, {文本}} 来划分多个分支。二者可以同时使用。
请求参数
主要请求参数说明
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本。@@{::words{文本}, {文本}}表示候选单词数组 |
EvalMode | Integer | 评估模式。5:情景评测模式 |
ServerType | Integer | 评估语言。0:英文 |
请求示例
{"RefText": "i go to school by @@{::words{bus}, {train},{bike}}","EvalMode": 5,"Keyword": "{::cmd{F_UKEY=true}} bus | train # bike","WorkMode":1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"dc0653c8-a82d-11ed-b481-acde48001122","ScoreCoeff":1.0}
返回结果
主要返回结果
参数名称 | 类型 | 描述 |
SuggestedScore | Integer | 建议评分 |
PronAccuracy | Integer | 整体精准度 |
PronFluency | Integer | 整体流利度 |
PronCompletion | Integer | 整体完整度 |
Words.PronAccuracy | Integer | 单词精准度 |
Words.PronFluency | Integer | 单词流利度 |
Words.MatchTag | Integer | 当前词的音频与文本的匹配情况 |
返回示例
{"PronAccuracy":91.329956,"PronFluency":0.8702884,"PronCompletion":1,"Words":[{"MemBeginTime":1190,"MemEndTime":1870,"PronAccuracy":82.92161,"PronFluency":0.6360371,"Word":"i","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"i_0","KeywordTag":0},{"MemBeginTime":1900,"MemEndTime":2190,"PronAccuracy":96.28798,"PronFluency":0.9317913,"Word":"go","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"go_1","KeywordTag":0},{"MemBeginTime":2190,"MemEndTime":2470,"PronAccuracy":97.32407,"PronFluency":0.9357265,"Word":"to","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"to_2","KeywordTag":0},{"MemBeginTime":2470,"MemEndTime":3030,"PronAccuracy":89.225395,"PronFluency":0.9408119,"Word":"school","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"school_3","KeywordTag":0},{"MemBeginTime":3030,"MemEndTime":3370,"PronAccuracy":91.76378,"PronFluency":0.9061842,"Word":"by","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"by_4","KeywordTag":0},{"MemBeginTime":3370,"MemEndTime":4070,"PronAccuracy":90.4569,"PronFluency":0.87117964,"Word":"train","MatchTag":0,"PhoneInfos":[],"ReferenceWord":"@@_5","KeywordTag":1}],"SessionId":"dc0653c8-a82d-11ed-b481-acde48001122","AudioUrl":"","SentenceInfoSet":"","Status":"Finished","SuggestedScore":91.329956,"RefTextId":0,"KeyWordHits":[1],"UnKeyWordHits":[],"RequestId":"d1c9a764-6ce1-4935-b173-a5d5090228f9"}
负向主题词
使用 {::cmd{F_UKEY=true}} 表示负向主题词,匹配到负向主题词评分为0。
请求参数
主要请求参数说明
参数名称 | 类型 | 描述 |
RefText | String | 被评估文本。 |
EvalMode | Integer | 评估模式。5:情景评测模式 |
ServerType | Integer | 评估语言。0:英文 |
请求示例
{"RefText": "i go to school by @@{::words{train}, {bus},{bike}}","EvalMode": 5,"Keyword": "{::cmd{F_UKEY=true}} train | bus # bike","WorkMode":1,"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*","SeqId":1,"IsEnd":1,"VoiceFileType":3,"VoiceEncodeType":1,"SessionId":"6d05b40a-a841-11ed-84fd-acde48001122","ScoreCoeff":1.0}
返回结果
主要返回结果
参数名称 | 类型 | 描述 |
UnKeyWordHits | Array of Float | 负向主题词命中标志 |
返回示例
{"PronAccuracy":0,"PronFluency":-1,"PronCompletion":-1,"Words":[],"SessionId":"6d05b40a-a841-11ed-84fd-acde48001122","AudioUrl":"","SentenceInfoSet":"","Status":"Finished","SuggestedScore":0,"RefTextId":-1,"KeyWordHits":[],"UnKeyWordHits":[1],"RequestId":"38bb7d7f-bb0c-40bd-a929-82dfe93f5b7a"}