情景评测模式

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

我的收藏

评测模式描述

评测要求:支持不超过30个汉字,60秒音频时长。
评测维度:支持返回单词精准度,流利度,完整度,切题度。
评测功能:支持多组文本,主题词和关键词,关键词组,候选单词数组,负向关键词,指定发音。

请求参数

主要请求参数说明
参数名称
类型
描述
RefText
String
被评估文本。可以使用 | 划分成多个分支
EvalMode
Integer
评估模式。5:情景评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText": "油画 | 山水画作",
"EvalMode": 5,
"ServerType": 1
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"1ce25184-a82a-11ed-a4f9-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果如下:
参数名称
类型
描述
SuggestedScore
Integer
建议评分
PronAccuracy
Integer
整体精准度
PronFluency
Integer
整体流利度
PronCompletion
Integer
整体完整度
Words.PronAccuracy
Integer
单词精准度
Words.PronFluency
Integer
单词流利度
Words.MatchTag
Integer
当前词的音频与文本的匹配情况
返回示例
{
"PronAccuracy":82.346985,
"PronFluency":0.95923966,
"PronCompletion":0.75,
"Words":[
{
"MemBeginTime":770,
"MemEndTime":1350,
"PronAccuracy":83.37192,
"PronFluency":0.93761367,
"Word":"山",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":0
},
{
"MemBeginTime":1350,
"MemEndTime":1820,
"PronAccuracy":84.39734,
"PronFluency":0.97282463,
"Word":"水",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":0
},
{
"MemBeginTime":1820,
"MemEndTime":2250,
"PronAccuracy":79.2717,
"PronFluency":0.96728057,
"Word":"画",
"MatchTag":0,
"PhoneInfos":[

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

],
"ReferenceWord":"",
"KeywordTag":0
}
],
"SessionId":"1ce25184-a82a-11ed-a4f9-acde48001122",
"AudioUrl":"",
"SentenceInfoSet":Array[1],
"Status":"Finished",
"SuggestedScore":77.2002984375,
"RefTextId":1,
"KeyWordHits":[

],
"UnKeyWordHits":[

],
"RequestId":"22a68331-1483-4d69-93a0-dcad59a0c088"
}

主题词和关键词

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

请求参数

主要请求参数说明
参数名称
类型
描述
RefText
String
被评估文本。可以使用 | 划分成多个分支
Keyword
Sting
主题词和关键词。使用|划分不同主题词,使用#划分不同主题词组
EvalMode
Integer
评估模式。5:情景评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText": "油画 | 山水画作",
"Keyword": "{::cmd{F_UKEY=true}} 油 | 山水画 # 绘画",
"EvalMode": 5,
"ServerType": 1
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"4f891e32-a82b-11ed-acdb-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果如下:
参数名称
类型
描述
PronAccuracy
Integer
精准度
PronCompletion
Integer
切题度
Words.KeywordTag
Integer
主题词命中标志
RefTextId
Integer
匹配候选文本的序号
KeyWordHits
Array of Float
主题词命中标志
UnKeyWordHits
Array of Float
负向主题词命中标志
返回示例


{
"PronAccuracy":82.346985,
"PronFluency":0.95923966,
"PronCompletion":1,
"Words":[
{
"MemBeginTime":-1,
"MemEndTime":-1,
"PronAccuracy":-1,
"PronFluency":-1,
"Word":"一",
"MatchTag":2,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":0
},
{
"MemBeginTime":-1,
"MemEndTime":-1,
"PronAccuracy":-1,
"PronFluency":-1,
"Word":"幅",
"MatchTag":2,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":0
},
{
"MemBeginTime":770,
"MemEndTime":1350,
"PronAccuracy":83.37192,
"PronFluency":0.93761367,
"Word":"山",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":1
},
{
"MemBeginTime":1350,
"MemEndTime":1820,
"PronAccuracy":84.39734,
"PronFluency":0.97282463,
"Word":"水",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":1
},
{
"MemBeginTime":1820,
"MemEndTime":2250,
"PronAccuracy":79.2717,
"PronFluency":0.96728057,
"Word":"画",
"MatchTag":0,
"PhoneInfos":[

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

],
"ReferenceWord":"*",
"KeywordTag":0
}
],
"SessionId":"4f891e32-a82b-11ed-acdb-acde48001122",
"AudioUrl":"",
"SentenceInfoSet":Array[1],
"Status":"Finished",
"SuggestedScore":82.346985,
"RefTextId":1,
"KeyWordHits":[
1
],
"UnKeyWordHits":[

],
"RequestId":"cc40207a-7b4a-4331-83ba-246a749c963b"
}

候选单词数组

除了使用 | 划分不同分支,也可以使用 @@{::words{文本}, {文本}} 来划分多个分支。二者可以同时使用。

请求参数

主要请求参数说明
参数名称
类型
描述
RefText
String
被评估文本。@@{::words{文本}, {文本}}表示候选单词词组
EvalMode
Integer
评估模式。5:情景评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText": "@@{::words{一幅油画 }, {一幅山水画},{一起绘画}}",
"EvalMode": 5
"Keyword": "{::cmd{F_UKEY=true}} 油 | 山水画 # 绘画",
"ServerType": 1,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"13b13cd4-a842-11ed-9330-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果
参数名称
类型
描述
PronAccuracy
Integer
准确度
PronCompletion
Integer
切题度
Words.KeywordTag
Integer
主题词命中标志
RefTextId
Integer
匹配候选文本的序号。候选单词词组在同一序号内
KeyWordHits
Array of Float
主题词命中标志
UnKeyWordHits
Array of Float
负向主题词命中标志
返回示例
{
"PronAccuracy":82.346985,
"PronFluency":0.95923966,
"PronCompletion":1,
"Words":[
{
"MemBeginTime":-1,
"MemEndTime":-1,
"PronAccuracy":-1,
"PronFluency":-1,
"Word":"一",
"MatchTag":2,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":0
},
{
"MemBeginTime":-1,
"MemEndTime":-1,
"PronAccuracy":-1,
"PronFluency":-1,
"Word":"幅",
"MatchTag":2,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":0
},
{
"MemBeginTime":770,
"MemEndTime":1350,
"PronAccuracy":83.37192,
"PronFluency":0.93761367,
"Word":"山",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":1
},
{
"MemBeginTime":1350,
"MemEndTime":1820,
"PronAccuracy":84.39734,
"PronFluency":0.97282463,
"Word":"水",
"MatchTag":0,
"PhoneInfos":[

],
"ReferenceWord":"",
"KeywordTag":1
},
{
"MemBeginTime":1820,
"MemEndTime":2250,
"PronAccuracy":79.2717,
"PronFluency":0.96728057,
"Word":"画",
"MatchTag":0,
"PhoneInfos":[

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

],
"ReferenceWord":"*",
"KeywordTag":0
}
],
"SessionId":"13b13cd4-a842-11ed-9330-acde48001122",
"AudioUrl":"",
"SentenceInfoSet":Array[1],
"Status":"Finished",
"SuggestedScore":82.346985,
"RefTextId":0,
"KeyWordHits":[
1
],
"UnKeyWordHits":[

],
"RequestId":"c16fb1d2-1cb6-466c-b0d9-73fdc5d2102b"
}

负向主题词

使用 {::cmd{F_UKEY=true}} 表示负向主题词,匹配到负向主题词评分为0。

请求参数

主要请求参数说明
参数名称
类型
描述
RefText
String
被评估文本
EvalMode
Integer
评估模式。5:情景评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText": "@@{::words{一幅油画 }, {一幅山水画},{一起绘画}}",
"EvalMode": 5
"Keyword": "{::cmd{F_UKEY=true}} 画 | 山水画 # 绘画",
"ServerType": 1,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"3872d884-a842-11ed-983d-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果
参数名称
类型
描述
UnKeyWordHits
Array of Float
负向主题词命中标志
返回示例
{
"PronAccuracy":0,
"PronFluency":-1,
"PronCompletion":-1,
"Words":[

],
"SessionId":"3872d884-a842-11ed-983d-acde48001122",
"AudioUrl":"",
"SentenceInfoSet":Array[1],
"Status":"Finished",
"SuggestedScore":0,
"RefTextId":-1,
"KeyWordHits":[

],
"UnKeyWordHits":[
1
],
"RequestId":"55473705-38f1-47cf-98fa-3f6a85da395d"
}

指定发音

使用 汉字{::pron{p1,p2..},{p3,p4..}..} 指定发音,发音单元为拼音

请求参数

主要请求参数说明
参数名称
类型
描述
RefText
String
被评估文本
EvalMode
Integer
评估模式。5:段落评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText": "清平乐{::pron{yue4}}",
"EvalMode": 5,
"ServerType":1,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"144e-1669015382042-66392",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明
参数名称
类型
描述
SuggestedScore
Integer
建议评分
PronAccuracy
Integer
整体精准度
PronFluency
Integer
整体流利度
Words.PronAccuracy
Integer
单词精准度
Words.PronFluency
Integer
单词流利度
返回示例
{
"PronAccuracy": 97.424416,
"PronFluency": 0.98064667,
"PronCompletion": 1,
"Words": [
{
"MemBeginTime": 510,
"MemEndTime": 890,
"PronAccuracy": 96.52874,
"PronFluency": 0.97874004,
"Word": "清",
"MatchTag": 0,
"PhoneInfos": [],
"ReferenceWord": "",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
},
{
"MemBeginTime": 890,
"MemEndTime": 1180,
"PronAccuracy": 97.27776,
"PronFluency": 0.98937464,
"Word": "平",
"MatchTag": 0,
"PhoneInfos": [],
"ReferenceWord": "",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
},
{
"MemBeginTime": 1180,
"MemEndTime": 1550,
"PronAccuracy": 98.46676,
"PronFluency": 0.9738254,
"Word": "乐",
"MatchTag": 0,
"PhoneInfos": [],
"ReferenceWord": "",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
}
],
"SessionId": "5ee85972-2c30-11ee-8d8a-acde48001122",
"AudioUrl": "",
"SentenceInfoSet": [],
"Status": "Finished",
"SuggestedScore": 97.424416,
"RefTextId": 0,
"KeyWordHits": [],
"UnKeyWordHits": [],
"RequestId": "fc6713c0-a942-4357-9ea9-3fdd365d4299"
}