单词评测模式

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

我的收藏

评测模式描述

评测要求:支持单词,组合词评测。音频时长最长60秒。
评测维度:支持返回单词精准度,流利度;支持返回音素精准度。
评测功能:支持重音检测,原始单词,音素到字母映射,音素到国际音标转换,指定发音,指定国际音标。

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。支持单词,组合词,缩写
EvalMode
Integer
评估模式。0:单词评测模式
ServerType
Integer
评估语言。0:英文
请求示例
{
"RefText": "Chinese",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAQzAABJU0ZUDgAAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"8fde-1668677271201-87656",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
SuggestedScore
Integer
建议评分
PronAccuracy
Integer
整体精准度
PronFluency
Integer
整体流利度
Words.PronAccuracy
Integer
单词精准度
Words.PronFluency
Integer
单词流利度
Words.PhoneInfos.PronAccuracy
Integer
音素精准度
Words.PhoneInfos.Stress
Boolean
当前评估文本对应音素是否为重音
Words.PhoneInfos.DetectedStress
Boolean
当前音频数据对应音素是否为重音
返回示例
{
"SuggestedScore":96.90857,
"PronAccuracy":96.90857,
"PronFluency":0.8866854,
"PronCompletion":1,
"RequestId":"7f1b9ea1-afc2-43fe-8c8d-497de18d86e4",
"Words":[
{
"MemBeginTime":880,
"MemEndTime":1660,
"PronAccuracy":96.90857,
"PronFluency":0.8866854,
"ReferenceWord":"chinese_0",
"Word":"chinese",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":880,
"MemEndTime":1060,
"PronAccuracy":97.13047,
"DetectedStress":false,
"Phone":"ch",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1060,
"MemEndTime":1230,
"PronAccuracy":97.7727,
"DetectedStress":false,
"Phone":"ay",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1230,
"MemEndTime":1320,
"PronAccuracy":98.01649,
"DetectedStress":true,
"Phone":"n",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":true,
"MatchTag":0
},
{
"MemBeginTime":1320,
"MemEndTime":1460,
"PronAccuracy":97.92693,
"DetectedStress":false,
"Phone":"iy",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1460,
"MemEndTime":1660,
"PronAccuracy":93.69628,
"DetectedStress":false,
"Phone":"z",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
}
],
"SessionId":"8fde-1668677271201-87656",
"Status":"Finished",
}

原始单词

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

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本
EvalMode
Integer
评估模式。0:单词评测模式
ServerType
Integer
评估语言。0:英文
请求示例
{
"RefText": "1",
"EvalMode": 0,
"ServerType": 0
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZMDIxLTA3LTAxIDEzOjQzAABJU0ZUDgAAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"f152-1668742248341-99106",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
Words.Word
String
当前词
Words.ReferenceWord
String
原始单词
返回示例
{
"SuggestedScore":94.499275,
"PronAccuracy":94.499275,
"PronFluency":0.9046501,
"PronCompletion":1,
"RequestId":"46ecfe3f-17c9-4ef5-9be6-78c510de8d1e",
"Words":[
{
"MemBeginTime":1020,
"MemEndTime":1500,
"PronAccuracy":94.499275,
"PronFluency":0.9046501,
"ReferenceWord":"1_0",
"Word":"one",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":1020,
"MemEndTime":1110,
"PronAccuracy":91.930374,
"DetectedStress":false,
"Phone":"hh",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1110,
"MemEndTime":1290,
"PronAccuracy":95.30409,
"DetectedStress":false,
"Phone":"w",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1290,
"MemEndTime":1430,
"PronAccuracy":96.1299,
"DetectedStress":false,
"Phone":"ah",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1430,
"MemEndTime":1500,
"PronAccuracy":94.63274,
"DetectedStress":false,
"Phone":"n",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
}
],
"SessionId":"f152-1668742248341-99106",
"SentenceInfoSet":Array[1],
"Status":"Finished",
}

音素到字母映射

通过该功能,可以对音素映射字母进行标记。音素到字母映射结构:{::cmd{F_P2L=true}} + 评估文本。

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。
EvalMode
Integer
评估模式。0:单词评测模式
ServerType
Integer
评估语言。0:英文
请求示例
{
"RefText": "{::cmd{F_P2L=true}} pig",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAATA3LTAxIDEzOjQzAABJU0ZUDgAAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"fbe89fc2-63ed-11ed-9f56-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
Words.Word
String
当前单词
Words.PhoneInfos.Phone
String
当前单词的音素
Words.PhoneInfos.ReferenceLetter
String
当前单词的音素映射的字母
返回示例

{
"PronAccuracy":3.0562108,
"PronFluency":0.74622995,
"PronCompletion":1,
"Words":[
{
"MemBeginTime":50,
"MemEndTime":830,
"PronAccuracy":3.0562108,
"PronFluency":0.74622995,
"Word":"pig",
"MatchTag":0,
"PhoneInfos":[
{
"MemBeginTime":50,
"MemEndTime":250,
"PronAccuracy":4.958462,
"DetectedStress":false,
"Phone":"p",
"Stress":false,
"ReferencePhone":"",
"MatchTag":0,
"ReferenceLetter":"p_0"
},
{
"MemBeginTime":250,
"MemEndTime":720,
"PronAccuracy":0.17926057,
"DetectedStress":false,
"Phone":"ih",
"Stress":false,
"ReferencePhone":"",
"MatchTag":0,
"ReferenceLetter":"i_1"
},
{
"MemBeginTime":720,
"MemEndTime":830,
"PronAccuracy":4.0309095,
"DetectedStress":false,
"Phone":"g",
"Stress":false,
"ReferencePhone":"",
"MatchTag":0,
"ReferenceLetter":"g_2"
}
],
"ReferenceWord":"pig_0",
}
],
"SessionId":"fbe89fc2-63ed-11ed-9f56-acde48001122",
"Status":"Finished",
"SuggestedScore":3.0562108,
"RequestId":"3cbfb134-9630-4029-8a4a-bf57c2a761d5"
}

音素到国际音标转换

返回音素默认为智聆音素,使用 {::cmd{F_IPA=true}} + 单词 开启⾳素到国际⾳标转换功能。

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。
EvalMode
Integer
评估模式。0:单词评测模式
ServerType
Integer
评估语言。0:英文
请求示例
{
"RefText": "{::cmd{F_IPA=true}}happy",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}

返回结果

返回结果说明:
参数名称
类型
描述
Words.PhoneInfos.Phone
Integer
当前音节
返回示例
{
"PronAccuracy": 96.829666,
"PronFluency": 0.82233715,
"PronCompletion": 1,
"Words": [
{
"MemBeginTime": 0,
"MemEndTime": 790,
"PronAccuracy": 96.829666,
"PronFluency": 0.82233715,
"Word": "happy",
"MatchTag": 0,
"PhoneInfos": [
{
"MemBeginTime": 0,
"MemEndTime": 200,
"PronAccuracy": 94.31433,
"DetectedStress": true,
"Phone": "'h",
"Stress": true,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 200,
"MemEndTime": 390,
"PronAccuracy": 95.81154,
"DetectedStress": false,
"Phone": "æ",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 390,
"MemEndTime": 620,
"PronAccuracy": 98.16035,
"DetectedStress": false,
"Phone": "p",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 620,
"MemEndTime": 790,
"PronAccuracy": 99.03245,
"DetectedStress": false,
"Phone": "i",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
}
],
"ReferenceWord": "happy_0",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
}
],
"SessionId": "7eb8c1a2-2b8a-11ee-b529-acde48001122",
"AudioUrl": "",
"SentenceInfoSet": [],
"Status": "Finished",
"SuggestedScore": 96.829666,
"RefTextId": -1,
"KeyWordHits": [],
"UnKeyWordHits": [],
"RequestId": "476b812e-487c-4709-b0d9-ec3b745c9eb0"
}

指定发音

使用 单词{::pron{p1,p2..},{p3,p4..}..} 指定发音,需要将国际音标通过音素映射表转换为智聆音素,参考音素映射表 -- 智聆音素

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。
EvalMode
Integer
评估模式。0:单词评测模式
ServerType
Integer
评估语言。0:英文
请求示例
音标
单词
多音词
{
"RefText": "au{::pron{aw}}",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}
{
"RefText": "happy{::pron{hh,ae,p,iy}}",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}
{
"RefText": "use{::pron{y,uw,z},{y,uw,s}}",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
SuggestedScore
Integer
建议评分
PronAccuracy
Integer
整体精准度
PronFluency
Integer
整体流利度
Words.PronAccuracy
Integer
单词精准度
Words.PronFluency
Integer
单词流利度
Words.PhoneInfos.PronAccuracy
Integer
音素精准度
返回示例
{
"PronAccuracy": 96.829666,
"PronFluency": 0.82233715,
"PronCompletion": 1,
"Words": [
{
"MemBeginTime": 0,
"MemEndTime": 790,
"PronAccuracy": 96.829666,
"PronFluency": 0.82233715,
"Word": "happy",
"MatchTag": 0,
"PhoneInfos": [
{
"MemBeginTime": 0,
"MemEndTime": 200,
"PronAccuracy": 94.31433,
"DetectedStress": true,
"Phone": "hh",
"Stress": true,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 200,
"MemEndTime": 390,
"PronAccuracy": 95.81155,
"DetectedStress": false,
"Phone": "ae",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 390,
"MemEndTime": 620,
"PronAccuracy": 98.16035,
"DetectedStress": false,
"Phone": "p",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 620,
"MemEndTime": 790,
"PronAccuracy": 99.03245,
"DetectedStress": false,
"Phone": "iy",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
}
],
"ReferenceWord": "happy_0",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
}
],
"SessionId": "7a8acce4-2b97-11ee-9efe-acde48001122",
"AudioUrl": "",
"SentenceInfoSet": [],
"Status": "Finished",
"SuggestedScore": 96.829666,
"RefTextId": -1,
"KeyWordHits": [],
"UnKeyWordHits": [],
"RequestId": "5614ab6d-c757-4557-a604-1a50eaca73e9"
}


指定国际音标

使用 单词{::ipapron{p1,p2..},{p3,p4..}..} 指定国际音标参考,音素映射表 -- 国际音标。指定国际音标并不会返回国际音标,如需返回国际音标需要添加音素到国际音标转换

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。
EvalMode
Integer
评估模式。0:单词评测模式
ServerType
Integer
评估语言。0:英文
请求示例
音标
单词
多音词
国际音标指定+转换
{
"RefText": "au{::ipapron{aʊ}}",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}
{
"RefText": "happy{::ipapron{'h,æ,p,i}}",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}
{
"RefText": "use{::ipapron{j,u,z},{j,u,s}}",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}
{
"RefText": "{::cmd{F_IPA=true}}happy{::ipapron{'h,æ,p,i}}",
"EvalMode": 0,
"ServerType":0,
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAE*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"ca0cb65e-694d-11ed-b467-acde48001122",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
SuggestedScore
Integer
建议评分
PronAccuracy
Integer
整体精准度
PronFluency
Integer
整体流利度
Words.PronAccuracy
Integer
单词精准度
Words.PronFluency
Integer
单词流利度
Words.PhoneInfos.PronAccuracy
Integer
音素精准度
返回示例
{
"PronAccuracy": 96.829666,
"PronFluency": 0.82233715,
"PronCompletion": 1,
"Words": [
{
"MemBeginTime": 0,
"MemEndTime": 790,
"PronAccuracy": 96.829666,
"PronFluency": 0.82233715,
"Word": "happy",
"MatchTag": 0,
"PhoneInfos": [
{
"MemBeginTime": 0,
"MemEndTime": 200,
"PronAccuracy": 94.31433,
"DetectedStress": true,
"Phone": "hh",
"Stress": true,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 200,
"MemEndTime": 390,
"PronAccuracy": 95.81155,
"DetectedStress": false,
"Phone": "ae",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 390,
"MemEndTime": 620,
"PronAccuracy": 98.16035,
"DetectedStress": false,
"Phone": "p",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 620,
"MemEndTime": 790,
"PronAccuracy": 99.03245,
"DetectedStress": false,
"Phone": "iy",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
}
],
"ReferenceWord": "happy_0",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
}
],
"SessionId": "7a8acce4-2b97-11ee-9efe-acde48001122",
"AudioUrl": "",
"SentenceInfoSet": [],
"Status": "Finished",
"SuggestedScore": 96.829666,
"RefTextId": -1,
"KeyWordHits": [],
"UnKeyWordHits": [],
"RequestId": "5614ab6d-c757-4557-a604-1a50eaca73e9"
}