句子多分支评测模式

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

我的收藏

评估模式描述

评测要求:支持多组评估文本,每组不超过30个字。音频数据最长60秒。
评测维度:支持返回单词精准度,流利度,完整度;支持返回音素精准度。
评测功能:多组文本,指定发音。

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本。可以使用 | 划分成多个分支
EvalMode
Integer
评估模式。6:句子多分支评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText": "我有一个苹果 | 我有一个香蕉 | 我有一个梨",
"EvalMode": 6,
"ServerType":1
"WorkMode":1,
"UserVoiceData":"UklGRka1CQBXQVZFZm10IBAAAAABAAEAgD4E*",
"SeqId":1,
"IsEnd":1,
"VoiceFileType":3,
"VoiceEncodeType":1,
"SessionId":"51af-1669016982596-45073",
"ScoreCoeff":1.0
}

返回结果

主要返回结果说明:
参数名称
类型
描述
SuggestedScore
Integer
建议评分
PronAccuracy
Integer
整体精准度
PronFluency
Integer
整体流利度
PronCompletion
Integer
整体完整度
Words.PronAccuracy
Integer
单词精准度
Words.PronFluency
Integer
单词流利度
Words.MatchTag
Integer
当前词的音频与文本的匹配情况
Words.PhoneInfos.PronAccuracy
Integer
音素精准度
Words.PhoneInfos.MatchTag
Integer
当前音素的音频与文本的匹配情况
请求示例
{
"SuggestedScore":42.6676,
"PronAccuracy":42.6676,
"PronFluency":0.980686,
"PronCompletion":1,
"RequestId":"f4937c6c-71a2-4e75-8eb5-62563f547d64",
"Words":[
{
"MemBeginTime":860,
"MemEndTime":1070,
"PronAccuracy":83.2239,
"PronFluency":0.9928636,
"ReferenceWord":"",
"Word":"我",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":860,
"MemEndTime":970,
"PronAccuracy":86.570595,
"DetectedStress":false,
"Phone":"w",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":970,
"MemEndTime":1070,
"PronAccuracy":81.55055,
"DetectedStress":false,
"Phone":"o3",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":1070,
"MemEndTime":1390,
"PronAccuracy":62.71528,
"PronFluency":0.98442817,
"ReferenceWord":"",
"Word":"有",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":1070,
"MemEndTime":1190,
"PronAccuracy":84.27622,
"DetectedStress":false,
"Phone":"y",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1190,
"MemEndTime":1390,
"PronAccuracy":55.528294,
"DetectedStress":false,
"Phone":"iu3",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":1390,
"MemEndTime":1490,
"PronAccuracy":4.155956,
"PronFluency":0.99708676,
"ReferenceWord":"",
"Word":"一",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":1390,
"MemEndTime":1460,
"PronAccuracy":6.19658,
"DetectedStress":false,
"Phone":"y",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1460,
"MemEndTime":1490,
"PronAccuracy":2.115332,
"DetectedStress":false,
"Phone":"i2",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":1490,
"MemEndTime":1850,
"PronAccuracy":25.117281,
"PronFluency":0.9349264,
"ReferenceWord":"",
"Word":"个",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":1490,
"MemEndTime":1730,
"PronAccuracy":18.593586,
"DetectedStress":false,
"Phone":"g",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1730,
"MemEndTime":1850,
"PronAccuracy":31.640976,
"DetectedStress":false,
"Phone":"e4",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":1870,
"MemEndTime":2210,
"PronAccuracy":24.040184,
"PronFluency":0.99394834,
"ReferenceWord":"",
"Word":"香",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":1870,
"MemEndTime":1970,
"PronAccuracy":5.018521,
"DetectedStress":false,
"Phone":"x",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":1970,
"MemEndTime":2040,
"PronAccuracy":12.708166,
"DetectedStress":false,
"Phone":"i1",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":2040,
"MemEndTime":2210,
"PronAccuracy":39.217026,
"DetectedStress":false,
"Phone":"ang",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
},
{
"MemBeginTime":2210,
"MemEndTime":2590,
"PronAccuracy":38.861088,
"PronFluency":0.9808626,
"ReferenceWord":"",
"Word":"蕉",
"MatchTag":0,
"KeywordTag":0,
"PhoneInfos":[
{
"MemBeginTime":2210,
"MemEndTime":2290,
"PronAccuracy":49.9117,
"DetectedStress":false,
"Phone":"j",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":2290,
"MemEndTime":2370,
"PronAccuracy":26.06729,
"DetectedStress":false,
"Phone":"i1",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
},
{
"MemBeginTime":2370,
"MemEndTime":2590,
"PronAccuracy":39.732677,
"DetectedStress":false,
"Phone":"ao",
"ReferencePhone":"",
"ReferenceLetter":"",
"Stress":false,
"MatchTag":0
}
]
}
],
"SessionId":"51af-1669016982596-45073",
"Status":"Finished",
"RefTextId":1,
}

指定发音

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

请求参数

主要请求参数说明:
参数名称
类型
描述
RefText
String
被评估文本
EvalMode
Integer
评估模式。6:句子多分支评测模式
ServerType
Integer
评估语言。1:中文
请求示例
{
"RefText": "清平乐{::pron{yue4}}",
"EvalMode": 6,
"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
单词流利度
Words.PhoneInfos.PronAccuracy
Integer
音素精准度
返回示例
{
"PronAccuracy": 97.42444,
"PronFluency": 0.882582,
"PronCompletion": 1,
"Words": [
{
"MemBeginTime": 560,
"MemEndTime": 940,
"PronAccuracy": 96.52874,
"PronFluency": 0.97874004,
"Word": "清",
"MatchTag": 0,
"PhoneInfos": [
{
"MemBeginTime": 560,
"MemEndTime": 740,
"PronAccuracy": 98.09525,
"DetectedStress": false,
"Phone": "q",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 740,
"MemEndTime": 940,
"PronAccuracy": 95.74548,
"DetectedStress": false,
"Phone": "ing1",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
}
],
"ReferenceWord": "",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
},
{
"MemBeginTime": 940,
"MemEndTime": 1230,
"PronAccuracy": 97.27779,
"PronFluency": 0.98937464,
"Word": "平",
"MatchTag": 0,
"PhoneInfos": [
{
"MemBeginTime": 940,
"MemEndTime": 1020,
"PronAccuracy": 96.886894,
"DetectedStress": false,
"Phone": "p",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 1020,
"MemEndTime": 1230,
"PronAccuracy": 97.473236,
"DetectedStress": false,
"Phone": "ing2",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
}
],
"ReferenceWord": "",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
},
{
"MemBeginTime": 1230,
"MemEndTime": 1600,
"PronAccuracy": 98.46676,
"PronFluency": 0.9738254,
"Word": "乐",
"MatchTag": 0,
"PhoneInfos": [
{
"MemBeginTime": 1230,
"MemEndTime": 1320,
"PronAccuracy": 98.806854,
"DetectedStress": false,
"Phone": "y",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
},
{
"MemBeginTime": 1320,
"MemEndTime": 1600,
"PronAccuracy": 98.29672,
"DetectedStress": false,
"Phone": "ve4",
"Stress": false,
"ReferencePhone": "",
"MatchTag": 0,
"ReferenceLetter": ""
}
],
"ReferenceWord": "",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
},
{
"MemBeginTime": 2240,
"MemEndTime": 2610,
"PronAccuracy": -1,
"PronFluency": 0,
"Word": "*",
"MatchTag": 1,
"PhoneInfos": [],
"ReferenceWord": "*",
"KeywordTag": 0,
"Tone": {
"Valid": false,
"RefTone": -1,
"HypothesisTone": -1
}
}
],
"SessionId": "613a16d4-2c30-11ee-8d8a-acde48001122",
"AudioUrl": "",
"SentenceInfoSet": [],
"Status": "Finished",
"SuggestedScore": 97.42444,
"RefTextId": 0,
"KeyWordHits": [],
"UnKeyWordHits": [],
"RequestId": "b197e367-0264-4f63-8cb6-1cba8689c91c"
}